-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a function with a noundef
return value, replace ret undef
with unreachable
#60717
Comments
@dianqk Will https://reviews.llvm.org/D144319 perhaps fix this issue as well? |
Yes, it also solves @ldionne This UB fix doesn't look like there's been any new progress for about a month now. |
https://reviews.llvm.org/D157227 |
I just realized that the simplest example in the issue is not resolved. lol |
Just recording that libc++ is out of the way now (and has been for roughly 1 release), since that isn't clear from the thread here. |
noundef
on the return value means thatso if the function
ret
urnsundef
, that must beunreachable
.Alive2 confirms this is allowed: https://alive2.llvm.org/ce/z/bW2DoM
But seemingly it doesn't happen today: https://llvm.godbolt.org/z/79a91o59q
The text was updated successfully, but these errors were encountered: