From: Dan Gohman Date: Wed, 14 Jul 2010 22:01:31 +0000 (+0000) Subject: Properly restore DebugLoc after leaving the local constant area. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=163f78ea4016d594d921154d8df1c9d746fb0ea8;p=oota-llvm.git Properly restore DebugLoc after leaving the local constant area. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108364 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 6c13f27199e..decaa769e99 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -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; }