[llvm-branch-commits] [clang] 150fe05 - [Test] Fix undef var in catch-undef-behavior.c
Thomas Preud'homme via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 16 14:43:56 PST 2020
Author: Thomas Preud'homme
Date: 2020-12-16T22:39:41Z
New Revision: 150fe05db4417c3ed9e4470b7bbd1a6aee7fe505
URL: https://github.com/llvm/llvm-project/commit/150fe05db4417c3ed9e4470b7bbd1a6aee7fe505
DIFF: https://github.com/llvm/llvm-project/commit/150fe05db4417c3ed9e4470b7bbd1a6aee7fe505.diff
LOG: [Test] Fix undef var in catch-undef-behavior.c
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.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D93350
Added:
Modified:
clang/test/CodeGen/catch-undef-behavior.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/catch-undef-behavior.c b/clang/test/CodeGen/catch-undef-behavior.c
index be185f925b19..55f6e420a4fc 100644
--- a/clang/test/CodeGen/catch-undef-behavior.c
+++ b/clang/test/CodeGen/catch-undef-behavior.c
@@ -275,7 +275,7 @@ signed char fp16_char_overflow(__fp16 *p) {
// 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;
More information about the llvm-branch-commits
mailing list