summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-06-22 22:04:24 +0000
committerBob Wilson <bob.wilson@apple.com>2010-06-22 22:04:24 +0000
commitc5d712232d1bbef0c0d58ad99ff8256bf8d478ff (patch)
tree3f9629fa45c5cbf478497aad94f91bdf577bd4b3 /llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
parent1e89cd804c9fb8d00e898c86580f55e075e54d18 (diff)
downloadbcm5719-llvm-c5d712232d1bbef0c0d58ad99ff8256bf8d478ff.tar.gz
bcm5719-llvm-c5d712232d1bbef0c0d58ad99ff8256bf8d478ff.zip
Thumb1 functions using @llvm.returnaddress were not saving the incoming LR.
Radar 8031193. llvm-svn: 106582
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb1InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/Thumb1InstrInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
index d17f60e5cf5..6408c00b74f 100644
--- a/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
+++ b/llvm/lib/Target/ARM/Thumb1InstrInfo.cpp
@@ -175,10 +175,10 @@ spillCalleeSavedRegisters(MachineBasicBlock &MBB,
isKill = false;
}
- if (isKill) {
+ if (isKill)
MBB.addLiveIn(Reg);
- MIB.addReg(Reg, RegState::Kill);
- }
+
+ MIB.addReg(Reg, getKillRegState(isKill));
}
return true;
}
OpenPOWER on IntegriCloud