[cfe-commits] r144946 - /cfe/trunk/test/Analysis/null-deref-ps.c

Anna Zaks ganna at apple.com
Thu Nov 17 16:45:20 PST 2011


Author: zaks
Date: Thu Nov 17 18:45:20 2011
New Revision: 144946

URL: http://llvm.org/viewvc/llvm-project?rev=144946&view=rev
Log:
[analyzer] The compiler warning was disabling the analyzer in this test.

Modified:
    cfe/trunk/test/Analysis/null-deref-ps.c

Modified: cfe/trunk/test/Analysis/null-deref-ps.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/null-deref-ps.c?rev=144946&r1=144945&r2=144946&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/null-deref-ps.c (original)
+++ cfe/trunk/test/Analysis/null-deref-ps.c Thu Nov 17 18:45:20 2011
@@ -221,7 +221,7 @@
   // This tests that our symbolication worked, and that we correctly test
   // x against 0 (with the same bitwidth).
   if (!x) {
-    if (!p) return; // expected-warning {{non-void function 'f10' should return a value}}
+    if (!p) return 0;
     *p = 10;
   }
   else p = 0;





More information about the cfe-commits mailing list