diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-03-16 22:20:18 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-03-16 22:20:18 +0000 |
commit | ac106273d4ff77d259a63e82771aec29ca11ec1a (patch) | |
tree | f5739f4fc3624d1cf9b5c27adc9ce0e8c5c5861f /compiler-rt | |
parent | 40a9200357099c7ef0480abb5a135239a83bfb35 (diff) | |
download | bcm5719-llvm-ac106273d4ff77d259a63e82771aec29ca11ec1a.tar.gz bcm5719-llvm-ac106273d4ff77d259a63e82771aec29ca11ec1a.zip |
The x86-64 ABI says that a bool is only guaranteed to be sign-extended to a byte
rather than an int. Thankfully, this only causes LLVM to miss optimizations, not
generate incorrect code.
This just fixes the zext at the return. We still insert an i32 ZextAssert when
reading a function's arguments, but it is followed by a truncate and another i8
ZextAssert so it is not optimized.
llvm-svn: 127766
Diffstat (limited to 'compiler-rt')
0 files changed, 0 insertions, 0 deletions