[PATCH] D93350: [Test] Fix undef var in catch-undef-behavior.c
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG150fe05db441: [Test] Fix undef var in catch-undef-behavior.c (authored by thopre). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93350/new/ 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
[PATCH] D93350: [Test] Fix undef var in catch-undef-behavior.c
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93350/new/ https://reviews.llvm.org/D93350 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D93350: [Test] Fix undef var in catch-undef-behavior.c
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