forked from OSchip/llvm-project
Fix a bug that caused stuff like this:
main at ./eh.cpp:1414 -> printf("a\n"); to be printed, instead of this: main at ./eh.cpp:14 14 -> printf("a\n"); llvm-svn: 18005
This commit is contained in:
parent
8bb29bf3f6
commit
e404d724ea
|
@ -119,7 +119,8 @@ void CLIDebugger::printProgramLocation(bool PrintLocation) {
|
||||||
CurrentFile = &FileDesc->getSourceText();
|
CurrentFile = &FileDesc->getSourceText();
|
||||||
|
|
||||||
std::cout << " at " << CurrentFile->getFilename() << ":" << LineNo;
|
std::cout << " at " << CurrentFile->getFilename() << ":" << LineNo;
|
||||||
if (ColNo) std::cout << ":" << ColNo << "\n";
|
if (ColNo) std::cout << ":" << ColNo;
|
||||||
|
std::cout << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (printSourceLine(LineNo))
|
if (printSourceLine(LineNo))
|
||||||
|
|
Loading…
Reference in New Issue