From c12a6731c58399a86f5944975341689559beb75b Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 Jul 2010 22:01:31 +0000 Subject: Properly restore DebugLoc after leaving the local constant area. llvm-svn: 108364 --- llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 6c13f27199e..decaa769e99 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/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; } -- cgit v1.2.3