[clang] [UBSAN] add null, alignment and array-bounds checks (PR #190739)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 9 21:23:41 PDT 2026
================
@@ -91,7 +94,8 @@ __attribute__((noinline)) void test_nested_member_plain_deref_ptr(struct Contain
// Misaligned aggregate access
// SHARED-LABEL: define {{[^@]*}}@test_misaligned_access
-// SHARED-NOT: call void @__ubsan_handle_type_mismatch_v1_abort
+// SHARED: icmp ne ptr
----------------
hubert-reinterpretcast wrote:
This does not capture the alignment check.
https://github.com/llvm/llvm-project/pull/190739
More information about the cfe-commits
mailing list