[llvm] Object: Don't error out on malformed bitcode files. (PR #96848)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 22:53:43 PDT 2024


================
@@ -9,37 +10,52 @@
 # RUN: llvm-as input.ll -o input.bc
 # RUN: cp input.bc good.bc
 # RUN: %python -c "with open('input.bc', 'a') as f: f.truncate(10)"
-# RUN: not llvm-ar rc bad.a input.bc 2>&1 | FileCheck %s --check-prefix=ERR1
+# RUN: llvm-ar rc bad.a input.bc 2>&1 | FileCheck %s --check-prefix=WARN1
+
+# llvm-nm will fail when it tries to read the malformed bitcode file, but
----------------
MaskRay wrote:

`## `

https://github.com/llvm/llvm-project/pull/96848


More information about the llvm-commits mailing list