-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustc_codegen_llvm: use opaque LLVM structs for extern type
.
#58271
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors try |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
rustc_codegen_llvm: use opaque LLVM structs for `extern type`. Mostly an experiment, @RalfJung suggested it could be used to inform LLVM that for e.g.: ```rust extern { type Foo; static BAR: Foo; } ``` `BAR` does not have a known size, and therefore nothing can be assumed about the validity of accesses at arbitrary offsets.
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@Mark-Simulacrum Ohh, the coredump backtraces are nice! |
You could manually enable an ALT builder for llvm asserts, neither one that's run so far has them enabled. |
The LLVM assertion failure is:
|
ping from triage @eddyb closing this issue due to inactivity. Thanks. |
I opened an issue so we don't forget about this: #59095 |
Mostly an experiment, @RalfJung suggested it could be used to inform LLVM that for e.g.:
BAR
does not have a known size, and therefore nothing can be assumed about the validity of accesses at arbitrary offsets.