[llvm] [MC] Do not crash on switching to sections of unknown types. (PR #92380)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 09:22:14 PDT 2024


================
@@ -1,7 +1,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-gnu %s -o - \
 // RUN:   | llvm-readobj -S --symbols - | FileCheck --check-prefix=OBJ %s
 
-// RUN: not --crash llvm-mc -filetype=asm -triple=x86_64-pc-linux-gnu %s -o - 2>&1 \
+// RUN: llvm-mc -filetype=asm -triple=x86_64-pc-linux-gnu %s -o - \
----------------
MaskRay wrote:

drop `-o -` since it's the default

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


More information about the llvm-commits mailing list