-
Notifications
You must be signed in to change notification settings - Fork 103
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
[CIR][CIRGen][TBAA] Struct with Union crashes during CodeGen #1246
Comments
Thank you for bringing this to my attention. I sincerely apologize for the issues caused by my recent patch #1220 . You're correct that the changes affected the handling of unions, leading to the crash you experienced. I've fixed in #1250 . Thanks again for your feedback, and please let me know if you encounter any further problems or have additional suggestions. |
Hi @PikachuHyA! thanks alot for fixing it, I will test the patch soon. It wasn't a serious issue by the way 😅 I was just bringing it to your attention. |
follow the skeleton of OG, the union is marked as run
run
|
@PikachuHyA that has been my point about crashing valid code, TBAA should be added incrementally without causing churn :) I'll revert #1220 for now, thanks for the report. |
I had to revert both 1220 and 1242. @PikachuHyA I suggest you don't re-add 1242 until we fix the |
The following code snippet crashes when generating CIR with
-O2
enabled after PR#1220 was merged.I haven't done a thorough review of the changes made, but I just noticed the PR broke something that worked for me before. Can't we add unions here, or just emit
tbaa_NYI
for all the non-scalar types for now?cc: @PikachuHyA, @bcardosolopes
The text was updated successfully, but these errors were encountered: