-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Don't error when adding a staticlib with bitcode files compiled by newer LLVM #137017
Conversation
8113404
to
1c12171
Compare
For testing this how I can create a minimal LLVM bitcode file which is guaranteed to be interpreted as having an invalid LLVM version? Something obviously bogus like |
This comment was marked as off-topic.
This comment was marked as off-topic.
dc821c8
to
d87c536
Compare
d87c536
to
9147b6d
Compare
The test uncovered two memory corruption bugs due to accidentally trying to use both an |
This comment has been minimized.
This comment has been minimized.
There are some invalid bitcode files in LLVM's test suite, e.g. https://github.com/llvm/llvm-project/blob/24830ea7108197c7880939aa2e32db3aa4bc6284/llvm/test/Bindings/llvm-c/Inputs/invalid.ll.bc |
Looks like telling llvm-ar to not attempt to produce a symbol table is enough to make the test pass on CI. @rustbot ready |
I had an inline question above @rustbot reviewed 😆 |
@rustbot ready |
@bors r+ |
…li-obk Don't error when adding a staticlib with bitcode files compiled by newer LLVM cc rust-lang#128955 (comment)
…li-obk Don't error when adding a staticlib with bitcode files compiled by newer LLVM cc rust-lang#128955 (comment)
Rollup of 10 pull requests Successful merges: - rust-lang#134943 (Add FileCheck annotations to mir-opt/issues) - rust-lang#137017 (Don't error when adding a staticlib with bitcode files compiled by newer LLVM) - rust-lang#137197 (Update some comparison codegen tests now that they pass in LLVM20) - rust-lang#137540 (Fix (more) test directives that were accidentally ignored) - rust-lang#137551 (import `simd_` intrinsics) - rust-lang#137599 (tests: use minicore more) - rust-lang#137673 (Fix Windows `Command` search path bug) - rust-lang#137676 (linker: Fix escaping style for response files on Windows) - rust-lang#137693 (Re-enable `--generate-link-to-defintion` for tools internal rustdoc) - rust-lang#137770 (Fix sized constraint for unsafe binder) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#137017 - bjorn3:ignore_invalid_bitcode, r=oli-obk Don't error when adding a staticlib with bitcode files compiled by newer LLVM cc rust-lang#128955 (comment)
cc #128955 (comment)