-
Notifications
You must be signed in to change notification settings - Fork 88
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
Function Definition calling another with const reference fails to compile #1138
Comments
What IR did you look at? The end IR is quite small ( Looking at the debugger it feels like it fails in llvm before really running |
Above also Fails with an older Clspv from May 22, using LLVM 15, while my previous bug report compiles OK with that older Clspv. It also compiles OK with Clang release 16, using: I do not have the latest Clang 17 ready, but my instinct is that it is quite unlikely that such basic language bug triggers would go unnoticed at the LLVM project. Thank you for teaching me about the "--show-producer-ir" , it is not in the --help! And thank you for your time! |
basically if you compile with |
clspv.exe -cl-std=CLC++ -inline-entry-points -cl-kernel-arg-info
Note the function is not even called. Just defining it fails.
Fails:
'Invalid bitcast'
' %0 = bitcast ptr %ref.tmp1 to ptr addrspace(4)'
'LLVM ERROR: Broken module found, compilation aborted!'
Source:
This one fails to produce IR, but when avoiding the bug triggers, the IR is curiously large.
The text was updated successfully, but these errors were encountered: