[cfe-commits] r162405 - /cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp

Anna Zaks ganna at apple.com
Wed Aug 22 15:47:58 PDT 2012


Author: zaks
Date: Wed Aug 22 17:47:58 2012
New Revision: 162405

URL: http://llvm.org/viewvc/llvm-project?rev=162405&view=rev
Log:
[analyzer] Fixup to r162399. Initialize the member variable.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp?rev=162405&r1=162404&r2=162405&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp Wed Aug 22 17:47:58 2012
@@ -725,7 +725,9 @@
     mutable bool Initialized;
     mutable Selector ObjectAtIndex;
     mutable Selector ObjectAtIndexedSubscript;
+
 public:
+  ObjCNonNilReturnValueChecker() : Initialized(false) {}
   void checkPostObjCMessage(const ObjCMethodCall &M, CheckerContext &C) const;
 };
 }





More information about the cfe-commits mailing list