Skip to content

llvm: fix missing global initializers in llvm module#13041

Closed
jacobly0 wants to merge 2 commits intoziglang:masterfrom
jacobly0:llvm-global-init
Closed

llvm: fix missing global initializers in llvm module#13041
jacobly0 wants to merge 2 commits intoziglang:masterfrom
jacobly0:llvm-global-init

Conversation

@jacobly0
Copy link
Member

@jacobly0 jacobly0 commented Oct 2, 2022

Fixes #12025 and #12588 by emitting a dummy initializer to catch various cases where we don't want to codegen one.

@andrewrk andrewrk self-requested a review October 3, 2022 06:27
@andrewrk
Copy link
Member

I'm not sure this is right. When would we ever want to not codegen an initializer?

@jacobly0
Copy link
Member Author

jacobly0 commented Oct 15, 2022

This has been superseded by #13166 and #13167 which fix the underlying issues, making this band-aid solution no longer needed.

@jacobly0 jacobly0 closed this Oct 15, 2022
@jacobly0 jacobly0 deleted the llvm-global-init branch October 16, 2022 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stage2 LLVM: module fails to validate due to uninitialized global

2 participants