-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Wrong codegen involving uninitialized static array when compiled in release mode #3695
Comments
Might be a big in LLVM. Somebody should try this with LLVM 3.8 or LLVM 3.9, because the Crystal I'm using is probably using LLVM 3.6 because it comes bundled from the omnibus release. |
I get this using LLVM 3.9 on master: https://aww.moe/flxzvf.txt |
Looks like a null pointer finalizer to me. |
@RX14 I mean, if you compile just the above program with LLVM 3.9 in normal and release mode, do you get the same results? |
|
@kostya Thank you! What if you use LLVM 3.5 or LLVM 3.6? (if you can try this) |
|
Closing as duplicate of #4104 |
Only on linux, running it in normal mode and release mode gives me 35 and 32 respectively.
The text was updated successfully, but these errors were encountered: