summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2014-01-14 04:20:01 +0000
committerMark Seaborn <mseaborn@chromium.org>2014-01-14 04:20:01 +0000
commitdfa550a1761a85417d0e42c8cd17cd08e753388b (patch)
treea62e58f745ddc64b711e049878ce80eda82cce48 /lib/Bitcode/Reader
parent3f7ae00155439d44391531389629f3a7a8378fca (diff)
downloadllvm-dfa550a1761a85417d0e42c8cd17cd08e753388b.tar.gz
llvm-dfa550a1761a85417d0e42c8cd17cd08e753388b.tar.bz2
llvm-dfa550a1761a85417d0e42c8cd17cd08e753388b.tar.xz
Fix llc to not reuse spill slots in functions that invoke setjmp()
We need to ensure that StackSlotColoring.cpp does not reuse stack spill slots in functions that call "returns_twice" functions such as setjmp(), otherwise this can lead to miscompiled code, because a stack slot would be clobbered when it's still live. This was already handled correctly for functions that call setjmp() (though this wasn't covered by a test), but not for functions that invoke setjmp(). We fix this by changing callsFunctionThatReturnsTwice() to check for invoke instructions. This fixes PR18244. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions