Properly restore DebugLoc after leaving the local constant area.
authorDan Gohman <gohman@apple.com>
Wed, 14 Jul 2010 22:01:31 +0000 (22:01 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 14 Jul 2010 22:01:31 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108364 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index 6c13f27199e8f563e4c702c14d292034c3c4887d..decaa769e99fe11d67d8b233e3c0905f070ac07f 100644 (file)
@@ -288,9 +288,10 @@ void FastISel::recomputeInsertPt() {
 
 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;
 }