[cfe-commits] r85497 - /cfe/trunk/lib/Analysis/CheckNSError.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Oct 28 22:56:54 PDT 2009
Author: zhongxingxu
Date: Thu Oct 29 00:56:54 2009
New Revision: 85497
URL: http://llvm.org/viewvc/llvm-project?rev=85497&view=rev
Log:
Add an assertion to ensure NullDerefChecker exists.
Modified:
cfe/trunk/lib/Analysis/CheckNSError.cpp
Modified: cfe/trunk/lib/Analysis/CheckNSError.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckNSError.cpp?rev=85497&r1=85496&r2=85497&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckNSError.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckNSError.cpp Thu Oct 29 00:56:54 2009
@@ -210,6 +210,7 @@
// Iterate over the implicit-null dereferences.
NullDerefChecker *Checker = Eng.getChecker<NullDerefChecker>();
+ assert(Checker && "NullDerefChecker not exist.");
for (NullDerefChecker::iterator I = Checker->implicit_nodes_begin(),
E = Checker->implicit_nodes_end(); I != E; ++I) {
More information about the cfe-commits
mailing list