[clang] Modify BoundsSan to improve debuggability (PR #65972)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 22 17:52:12 PDT 2023


================
@@ -0,0 +1,83 @@
+; RUN: llc -O3 -mtriple arm64-linux -filetype asm -o - %s | FileCheck %s -check-prefix CHECK-ASM
+; What this test does is check that even with nomerge, the functions still get merged in
+; compiled code as the ubsantrap call gets lowered to a single instruction: brk.
----------------
vitalybuka wrote:

you don't change MC, so I don't think we need the test here

However we need a test in llvm-project/llvm/test/Instrumentation/BoundsChecking/

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


More information about the cfe-commits mailing list