diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-06-22 22:04:24 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-06-22 22:04:24 +0000 |
commit | a3a204664db165f7b58a45e2239127513b207e8f (patch) | |
tree | 4424c3dfa4f90c5fa53b8ae36a669005506e27b6 /lib/Target/ARM/Thumb1InstrInfo.cpp | |
parent | 97994e02621dbb174463c348b7155978a1429b8b (diff) | |
download | external_llvm-a3a204664db165f7b58a45e2239127513b207e8f.zip external_llvm-a3a204664db165f7b58a45e2239127513b207e8f.tar.gz external_llvm-a3a204664db165f7b58a45e2239127513b207e8f.tar.bz2 |
Thumb1 functions using @llvm.returnaddress were not saving the incoming LR.
Radar 8031193.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb1InstrInfo.cpp')
-rw-r--r-- | lib/Target/ARM/Thumb1InstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/Thumb1InstrInfo.cpp b/lib/Target/ARM/Thumb1InstrInfo.cpp index d17f60e..6408c00 100644 --- a/lib/Target/ARM/Thumb1InstrInfo.cpp +++ b/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; } |