Skip to content

Commit 005a4aa

Browse files
committed
fix test
1 parent 2afba9e commit 005a4aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/test/CIR/CodeGen/cast.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ bool cptr(void *d) {
6666

6767
void should_not_cast() {
6868
unsigned x1;
69+
unsigned uu = (unsigned)x1; // identity
6970

70-
unsigned uu = (unsigned)x1;
71-
bool ib = (bool)x1;
71+
bool x2;
72+
bool ib = (bool)x2; // identity
7273

7374
(void) ib; // void cast
7475
}
7576

7677
// CHECK: cir.func @should_not_cast
7778
// CHECK-NOT: cir.cast
78-
// CHECK: }
79+
// CHECK: cir.return

0 commit comments

Comments
 (0)