commit | 69a4c0861855d688bc0832e90759fb3786db118d | [log] [tgz] |
---|---|---|
author | Bob Wilson <bob.wilson@apple.com> | Tue Jun 22 22:04:24 2010 +0000 |
committer | Bob Wilson <bob.wilson@apple.com> | Tue Jun 22 22:04:24 2010 +0000 |
tree | 4424c3dfa4f90c5fa53b8ae36a669005506e27b6 | |
parent | 5d374e7844bf54d48ac06f9934142318878f65b0 [diff] [blame] |
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
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 @@ isKill = false; } - if (isKill) { + if (isKill) MBB.addLiveIn(Reg); - MIB.addReg(Reg, RegState::Kill); - } + + MIB.addReg(Reg, getKillRegState(isKill)); } return true; }