summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
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
commitc12a6731c58399a86f5944975341689559beb75b (patch)
treedc89103c54599082160a45ef00707be592b822c9 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
parentc357f4121e2ee8e52da8a4a7cbdfb397102642ae (diff)
downloadbcm5719-llvm-c12a6731c58399a86f5944975341689559beb75b.tar.gz
bcm5719-llvm-c12a6731c58399a86f5944975341689559beb75b.zip
Properly restore DebugLoc after leaving the local constant area.
llvm-svn: 108364
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud