summaryrefslogtreecommitdiff
path: root/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
commita3a204664db165f7b58a45e2239127513b207e8f (patch)
tree4424c3dfa4f90c5fa53b8ae36a669005506e27b6 /lib/Target/ARM/Thumb1InstrInfo.cpp
parent97994e02621dbb174463c348b7155978a1429b8b (diff)
downloadllvm-a3a204664db165f7b58a45e2239127513b207e8f.tar.gz
llvm-a3a204664db165f7b58a45e2239127513b207e8f.tar.bz2
llvm-a3a204664db165f7b58a45e2239127513b207e8f.tar.xz
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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/Thumb1InstrInfo.cpp b/lib/Target/ARM/Thumb1InstrInfo.cpp
index d17f60e5cf..6408c00b74 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;
}