]> granicus.if.org Git - clang/commitdiff
[Analyzer] Fix for test file of bug 40625
authorAdam Balogh <adam.balogh@ericsson.com>
Fri, 15 Feb 2019 12:33:42 +0000 (12:33 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Fri, 15 Feb 2019 12:33:42 +0000 (12:33 +0000)
Test fixed and changed to true positive, FIXME about false positive removed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354127 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/PR40625.cpp

index 6cc27d39b6c089fbf0fbf37054e249186350f96c..ac23a71c1c6a89a08b563c8986ecb92f4035d229 100644 (file)
@@ -3,10 +3,7 @@
 void f(const int *end);
 
 void g(const int (&arrr)[10]) {
-  f(arrr+sizeof(arrr)); // expected-warning{{1st function call argument is a pointer to uninitialized value}}
-  // FIXME: This is a false positive that should be fixed. Until then this
-  //        tests the crash fix in FindLastStoreBRVisitor (beside
-  //        uninit-vals.m).
+  f(arrr); // expected-warning{{1st function call argument is a pointer to uninitialized value}}
 }
 
 void h() {