aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-14 22:01:31 +0000
committerDan Gohman <gohman@apple.com>2010-07-14 22:01:31 +0000
commit1c64f5b7c8a54030b577e0b12609ec16ae6299d9 (patch)
tree51f2149d04a09671afcbbcccd934fb874dedada5
parentf988f9a34d01d1e91d7950c8412272167d341020 (diff)
downloadexternal_llvm-1c64f5b7c8a54030b577e0b12609ec16ae6299d9.tar.gz
external_llvm-1c64f5b7c8a54030b577e0b12609ec16ae6299d9.tar.bz2
external_llvm-1c64f5b7c8a54030b577e0b12609ec16ae6299d9.zip
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
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index 6c13f27199..decaa769e9 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;
}