[llvm-commits] [llvm-gcc-4.2] r107843 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Stuart Hastings
stuart at apple.com
Wed Jul 7 17:12:36 PDT 2010
Author: stuart
Date: Wed Jul 7 19:12:36 2010
New Revision: 107843
URL: http://llvm.org/viewvc/llvm-project?rev=107843&view=rev
Log:
Record correct line # for decl. Radar 8152866.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=107843&r1=107842&r2=107843&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Wed Jul 7 19:12:36 2010
@@ -604,7 +604,7 @@
Instruction *Call =
DebugFactory.InsertDeclare(AI, D, Builder.GetInsertBlock());
- Call->setDebugLoc(DebugLoc::get(CurLineNo, 0, VarScope));
+ Call->setDebugLoc(DebugLoc::get(Loc.line, 0, VarScope));
}
More information about the llvm-commits
mailing list