Uh oh!
There was an error while loading. Please reload this page.
Don't error when adding a staticlib with bitcode files compiled by newer LLVM - #137017
Conversation
rustbot
commented
Feb 14, 2025
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
8113404 to
1c12171CompareUh oh!
There was an error while loading. Please reload this page.
bjorn3
commented
Feb 14, 2025
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.
Uh oh!
There was an error while loading. Please reload this page.
dc821c8 to
d87c536Compared87c536 to
9147b6dComparebjorn3
commented
Feb 14, 2025
The test uncovered two memory corruption bugs due to accidentally trying to use both an |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
pcc
commented
Feb 14, 2025
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 |
bjorn3
commented
Feb 21, 2025
Looks like telling llvm-ar to not attempt to produce a symbol table is enough to make the test pass on CI. @rustbot ready |
oli-obk
commented
Feb 21, 2025
I had an inline question above @rustbot reviewed 😆 |
bjorn3
commented
Feb 26, 2025
@rustbot ready |
oli-obk
commented
Feb 26, 2025
@bors r+ |
bors
commented
Feb 26, 2025
…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)