Skip to content
Commit ac106273 authored by Cameron Zwarich's avatar Cameron Zwarich
Browse files

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
parent 40a92003
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment