diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-08 06:33:38 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-08 06:33:38 +0000 |
commit | 278f89732fca92ba9cd268698d5e586f09e4499f (patch) | |
tree | 062cc0159646b76fb538fec7864b99ea7ca670bd /clang/test/Sema/uninit-variables-vectors.c | |
parent | 33984c6973c6ac6b292219322b085b96b76e9583 (diff) | |
download | bcm5719-llvm-278f89732fca92ba9cd268698d5e586f09e4499f.tar.gz bcm5719-llvm-278f89732fca92ba9cd268698d5e586f09e4499f.zip |
Now that the analyzer is distinguishing between uninitialized uses that
definitely have a path leading to them, and possibly have a path leading
to them; reflect that distinction in the warning text emitted.
llvm-svn: 129126
Diffstat (limited to 'clang/test/Sema/uninit-variables-vectors.c')
-rw-r--r-- | clang/test/Sema/uninit-variables-vectors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/uninit-variables-vectors.c b/clang/test/Sema/uninit-variables-vectors.c index d59d6fef009..10a8ecc378f 100644 --- a/clang/test/Sema/uninit-variables-vectors.c +++ b/clang/test/Sema/uninit-variables-vectors.c @@ -7,10 +7,10 @@ __m128 _mm_loadu_ps(const float *p); void test1(float *input) { __m128 x, y, z, w, X; // expected-note {{variable 'x' is declared here}} expected-note {{variable 'y' is declared here}} expected-note {{variable 'w' is declared here}} expected-note {{variable 'z' is declared here}} - x = _mm_xor_ps(x,x); // expected-warning {{variable 'x' is possibly uninitialized when used here}} - y = _mm_xor_ps(y,y); // expected-warning {{variable 'y' is possibly uninitialized when used here}} - z = _mm_xor_ps(z,z); // expected-warning {{variable 'z' is possibly uninitialized when used here}} - w = _mm_xor_ps(w,w); // expected-warning {{variable 'w' is possibly uninitialized when used here}} + x = _mm_xor_ps(x,x); // expected-warning {{variable 'x' is uninitialized when used here}} + y = _mm_xor_ps(y,y); // expected-warning {{variable 'y' is uninitialized when used here}} + z = _mm_xor_ps(z,z); // expected-warning {{variable 'z' is uninitialized when used here}} + w = _mm_xor_ps(w,w); // expected-warning {{variable 'w' is uninitialized when used here}} X = _mm_loadu_ps(&input[0]); X = _mm_xor_ps(X,X); // no-warning } |