From: David Majnemer Date: Wed, 3 Sep 2014 23:20:58 +0000 (+0000) Subject: Adjust test to handle fallout from r217102. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a02234a7ba6e785d927d04ff19e66b1ea625e8b;p=clang Adjust test to handle fallout from r217102. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217104 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Misc/backend-optimization-failure.cpp b/test/Misc/backend-optimization-failure.cpp index 1b79fb31d1..2ee42b88a1 100644 --- a/test/Misc/backend-optimization-failure.cpp +++ b/test/Misc/backend-optimization-failure.cpp @@ -6,8 +6,8 @@ void test_switch(int *A, int *B, int Length) { #pragma clang loop vectorize(enable) unroll(disable) - for (int i = 0; i < Length; i++) { - /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ switch (A[i]) { + /* expected-warning {{loop not vectorized: failed explicitly specified loop vectorization}} */ for (int i = 0; i < Length; i++) { + switch (A[i]) { case 0: B[i] = 1; break;