[llvm] [AArch64] Null check TargetStreamer before emitting .variant_pcs (PR #138924)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 23:34:40 PDT 2025


================
@@ -2,6 +2,9 @@
 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -filetype=obj -o - %s \
 ; RUN:   | llvm-readobj --symbols - | FileCheck %s --check-prefix=CHECK-OBJ
 
+; Check we don't crash when using a Mach-O object format.
+; RUN: llc -mtriple=arm64-apple-macosx15.0.0 -mattr=+sve -filetype=obj -o /dev/null %s
----------------
sdesmalen-arm wrote:

I'm not entirely sure how useful this RUN line is, because it's guarding against a case that should never have happened.

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


More information about the llvm-commits mailing list