diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-14 22:01:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-14 22:01:31 +0000 |
commit | c12a6731c58399a86f5944975341689559beb75b (patch) | |
tree | dc89103c54599082160a45ef00707be592b822c9 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | c357f4121e2ee8e52da8a4a7cbdfb397102642ae (diff) | |
download | bcm5719-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.cpp | 3 |
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; } |