Add an assertion to ensure NullDerefChecker exists.

llvm-svn: 85497
This commit is contained in:
Zhongxing Xu 2009-10-29 05:56:54 +00:00
parent 6747b4ca30
commit aa4121d062
1 changed files with 1 additions and 0 deletions

View File

@ -210,6 +210,7 @@ void NSErrorCheck::CheckParamDeref(const VarDecl *Param,
// 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) {