Skip to content

Commit 0ed60c2

Browse files
committed
avoid optimization in testcase
1 parent 77e2606 commit 0ed60c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/CodeGen/array-bounds-constraints.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ void test_store_undef(int i, int value) {
4343
// CHECK: %{{.*}} = icmp ult i32 %i, 10
4444
// CHECK: call void @llvm.assume(i1 %{{.*}})
4545
arr[i] = value;
46+
init_array(arr); // Avoid optimization of the above statement.
4647
}

0 commit comments

Comments
 (0)