aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-19 19:45:44 +0000
committerChris Lattner <sabre@nondot.org>2004-11-19 19:45:44 +0000
commitfd80b5c2603e1c6af4767672e614329c2a06faf1 (patch)
tree18acadce65e6cf8a12cbe241a12a5c93574772da /tools
parent2f95ed65e032f66016c55149b2178d61d400c15c (diff)
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"); git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-db/Commands.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp
index 8e3125eaff..de7fdf604b 100644
--- a/tools/llvm-db/Commands.cpp
+++ b/tools/llvm-db/Commands.cpp
@@ -119,7 +119,8 @@ void CLIDebugger::printProgramLocation(bool PrintLocation) {
CurrentFile = &FileDesc->getSourceText();
std::cout << " at " << CurrentFile->getFilename() << ":" << LineNo;
- if (ColNo) std::cout << ":" << ColNo << "\n";
+ if (ColNo) std::cout << ":" << ColNo;
+ std::cout << "\n";
}
if (printSourceLine(LineNo))