diff --git a/clang/lib/CodeGen/SanitizerHandler.h b/clang/lib/CodeGen/SanitizerHandler.h index a66e7ab354eb2..871e17c22d3fa 100644 --- a/clang/lib/CodeGen/SanitizerHandler.h +++ b/clang/lib/CodeGen/SanitizerHandler.h @@ -64,7 +64,7 @@ SANITIZER_CHECK(SubOverflow, sub_overflow, 0, \ "Integer subtraction overflowed") \ SANITIZER_CHECK(TypeMismatch, type_mismatch, 1, \ - "Type mismatch in operation") \ + "Alignment, null, or object-size error") \ SANITIZER_CHECK(AlignmentAssumption, alignment_assumption, 0, \ "Alignment assumption violated") \ SANITIZER_CHECK( \ diff --git a/clang/test/DebugInfo/Generic/ubsan-trap-reason-type-mismatch.c b/clang/test/DebugInfo/Generic/ubsan-trap-reason-type-mismatch.c index 802ec91b53a0d..5960930c04171 100644 --- a/clang/test/DebugInfo/Generic/ubsan-trap-reason-type-mismatch.c +++ b/clang/test/DebugInfo/Generic/ubsan-trap-reason-type-mismatch.c @@ -6,4 +6,4 @@ int type_mismatch(int *p) { return *p; } // CHECK-LABEL: @type_mismatch // CHECK: call void @llvm.ubsantrap(i8 22) {{.*}}!dbg [[LOC:![0-9]+]] // CHECK: [[LOC]] = !DILocation(line: 0, scope: [[MSG:![0-9]+]], {{.+}}) -// CHECK: [[MSG]] = distinct !DISubprogram(name: "__clang_trap_msg$Undefined Behavior Sanitizer$Type mismatch in operation" +// CHECK: [[MSG]] = distinct !DISubprogram(name: "__clang_trap_msg$Undefined Behavior Sanitizer$Alignment, null, or object-size error"