[compiler-rt] [llvm] [compiler-rt][asan] Add asan checks for __builtin_assume_dereferencable (PR #190871)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 15:55:13 PDT 2026
================
@@ -693,9 +693,15 @@ void ErrorGeneric::Print() {
bug_descr, (void *)addr, (void *)pc, (void *)bp, (void *)sp);
Printf("%s", d.Default());
- Printf("%s%s of size %zu at %p thread %s%s\n", d.Access(),
- access_size ? (is_write ? "WRITE" : "READ") : "ACCESS", access_size,
- (void *)addr, AsanThreadIdAndName(tid).c_str(), d.Default());
+ const char* access_type = "ACCESS";
+ if (internal_strcmp(bug_descr, "dereferenceable-assumption-violation") == 0) {
----------------
fmayer wrote:
I don't like this. I think we should replace is_write with a enum?
https://github.com/llvm/llvm-project/pull/190871
More information about the llvm-commits
mailing list