[clang] [compiler-rt] [llvm] [TySan] User-friendly (C style) pointer type names for error reports (PR #166381)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 02:05:21 PST 2025
================
@@ -7,7 +7,7 @@ void zero_array() {
for (i = 0; i < 1; ++i)
P[i] = 0.0f;
// CHECK: ERROR: TypeSanitizer: type-aliasing-violation
- // CHECK: WRITE of size 4 at {{.*}} with type float accesses an existing object of type p1 float
+ // CHECK: WRITE of size 4 at {{.*}} with type float accesses an existing object of type float*
----------------
fhahn wrote:
could you also add a test with a higher levels of indirection?
And possibly a type that's more than 512 chars?
https://github.com/llvm/llvm-project/pull/166381
More information about the llvm-commits
mailing list