From 2ab0dd5524b7a7f84b0695fb88badc2e55534a5c Mon Sep 17 00:00:00 2001 From: Adam Balogh Date: Fri, 15 Feb 2019 12:33:42 +0000 Subject: [PATCH] [Analyzer] Fix for test file of bug 40625 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/Analysis/PR40625.cpp b/test/Analysis/PR40625.cpp index 6cc27d39b6..ac23a71c1c 100644 --- a/test/Analysis/PR40625.cpp +++ b/test/Analysis/PR40625.cpp @@ -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() { -- 2.40.0