thopre created this revision. thopre added reviewers: rsmith, rnk, BillyONeal, spatel. thopre requested review of this revision. Herald added a project: clang.
Commit 9e52c43090f8cd980167bbd2719878ae36bcf6b5 removed the directive defining LINE_1600 but left a string substitution to that variable in a CHECK-NOT directive. This will make that CHECK-NOT directive always fail to match, no matter the string. This commit follows the pattern done in 9e52c43090f8cd980167bbd2719878ae36bcf6b5 of simplifying the CHECK-NOT to only look for the function name and the opening parenthesis, thereby not requiring the LINE_1600 variable. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D93350 Files: clang/test/CodeGen/catch-undef-behavior.c Index: clang/test/CodeGen/catch-undef-behavior.c =================================================================== --- clang/test/CodeGen/catch-undef-behavior.c +++ clang/test/CodeGen/catch-undef-behavior.c @@ -275,7 +275,7 @@ // CHECK-COMMON-LABEL: @float_float_overflow float float_float_overflow(double f) { - // CHECK-UBSAN-NOT: call {{.*}} @__ubsan_handle_float_cast_overflow(i8* bitcast ({{.*}} @[[LINE_1600]] to i8*), + // CHECK-UBSAN-NOT: call {{.*}} @__ubsan_handle_float_cast_overflow( // CHECK-TRAP-NOT: call {{.*}} @llvm.ubsantrap(i8 19) [[NR_NUW]] // CHECK-COMMON: } return f;
Index: clang/test/CodeGen/catch-undef-behavior.c =================================================================== --- clang/test/CodeGen/catch-undef-behavior.c +++ clang/test/CodeGen/catch-undef-behavior.c @@ -275,7 +275,7 @@ // CHECK-COMMON-LABEL: @float_float_overflow float float_float_overflow(double f) { - // CHECK-UBSAN-NOT: call {{.*}} @__ubsan_handle_float_cast_overflow(i8* bitcast ({{.*}} @[[LINE_1600]] to i8*), + // CHECK-UBSAN-NOT: call {{.*}} @__ubsan_handle_float_cast_overflow( // CHECK-TRAP-NOT: call {{.*}} @llvm.ubsantrap(i8 19) [[NR_NUW]] // CHECK-COMMON: } return f;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits