diff options
Diffstat (limited to 'test/Misc/backend-optimization-failure.cpp')
-rw-r--r-- | test/Misc/backend-optimization-failure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Misc/backend-optimization-failure.cpp b/test/Misc/backend-optimization-failure.cpp index bb50e96aaa57..1657c0cb91d5 100644 --- a/test/Misc/backend-optimization-failure.cpp +++ b/test/Misc/backend-optimization-failure.cpp @@ -4,7 +4,7 @@ // Test verifies optimization failures generated by the backend are handled // correctly by clang. LLVM tests verify all of the failure conditions. -void test_switch(int *A, int *B, int Length) { +void test_switch(int *A, int *B, int Length,int J) { #pragma clang loop vectorize(enable) unroll(disable) for (int i = 0; i < Length; i++) { /* expected-warning@-1 {{loop not vectorized: failed explicitly specified loop vectorization}} */ switch (A[i]) { @@ -12,7 +12,7 @@ void test_switch(int *A, int *B, int Length) { B[i] = 1; break; case 1: - B[i] = 2; + B[J] = 2; break; default: B[i] = 3; |