[llvm-commits] [llvm] r108364 - /llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
Dan Gohman
gohman at apple.com
Wed Jul 14 15:01:31 PDT 2010
Author: djg
Date: Wed Jul 14 17:01:31 2010
New Revision: 108364
URL: http://llvm.org/viewvc/llvm-project?rev=108364&view=rev
Log:
Properly restore DebugLoc after leaving the local constant area.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=108364&r1=108363&r2=108364&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Wed Jul 14 17:01:31 2010
@@ -288,9 +288,10 @@
FastISel::SavePoint FastISel::enterLocalValueArea() {
MachineBasicBlock::iterator OldInsertPt = FuncInfo.InsertPt;
+ DebugLoc OldDL = DL;
recomputeInsertPt();
DL = DebugLoc();
- SavePoint SP = { OldInsertPt, DL };
+ SavePoint SP = { OldInsertPt, OldDL };
return SP;
}
More information about the llvm-commits
mailing list