1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Properly restore DebugLoc after leaving the local constant area.

llvm-svn: 108364
This commit is contained in:
Dan Gohman 2010-07-14 22:01:31 +00:00
parent 6c1d01b37c
commit 9589865567

View File

@ -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;
}