[llvm-bugs] [Bug 51163] IR function with bool as return type generates binary may return 255 as true value, which causes UB in C++
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 22 12:06:00 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51163
Eli Friedman <efriedma at quicinc.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |efriedma at quicinc.com
--- Comment #1 from Eli Friedman <efriedma at quicinc.com> ---
You can write "define zeroext i1 @f()" if you want the return value
zero-extended. (This is how clang lowers a function that returns a boolean.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210722/f5d38c3b/attachment.html>
More information about the llvm-bugs
mailing list