Skip to content

Commit

Permalink
[clang] Fix test after #84214
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Mar 11, 2024
1 parent 60e562d commit 6397f22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/test/CodeGen/remote-traps.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// RUN: %clang_cc1 -O1 -emit-llvm -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow %s -o - | FileCheck %s
// RUN: %clang_cc1 -O1 -emit-llvm -fsanitize=signed-integer-overflow -fsanitize-trap=signed-integer-overflow -mllvm -clang-remove-traps -mllvm -remove-traps-random-rate=1 %s -o - | FileCheck %s --implicit-check-not="call void @llvm.ubsantrap" --check-prefixes=REMOVE

int f(int x) {
int test(int x) {
return x + 123;
}

// CHECK-LABEL: define dso_local noundef i32 @f(
// CHECK-LABEL: define {{.*}}i32 @test(
// CHECK: call { i32, i1 } @llvm.sadd.with.overflow.i32(
// CHECK: trap:
// CHECK-NEXT: call void @llvm.ubsantrap(i8 0)
// CHECK-NEXT: unreachable

// REMOVE-LABEL: define dso_local noundef i32 @f(
// REMOVE-LABEL: define {{.*}}i32 @test(
// REMOVE: call { i32, i1 } @llvm.sadd.with.overflow.i32(

0 comments on commit 6397f22

Please sign in to comment.