diff options
| author | Ted Kremenek <kremenek@apple.com> | 2009-11-21 00:49:41 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2009-11-21 00:49:41 +0000 |
| commit | f7adea43b4fc35da29bac39e31bf81e2e2f597e6 (patch) | |
| tree | b4ad3399cb6cb47cc5a2aaabaaf12a68a993827b /clang/lib/Analysis/GRExprEngine.cpp | |
| parent | 92e8c655b2fc8685fecaba2575284c82d9ac74d3 (diff) | |
| download | bcm5719-llvm-f7adea43b4fc35da29bac39e31bf81e2e2f597e6.tar.gz bcm5719-llvm-f7adea43b4fc35da29bac39e31bf81e2e2f597e6.zip | |
More checker refactoring. Passing undefined values in a message expression is now handled by UndefinedArgChecker.
llvm-svn: 89519
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
| -rw-r--r-- | clang/lib/Analysis/GRExprEngine.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp index 2b4b5ae1a5d..047e27dabdc 100644 --- a/clang/lib/Analysis/GRExprEngine.cpp +++ b/clang/lib/Analysis/GRExprEngine.cpp @@ -1998,26 +1998,6 @@ void GRExprEngine::VisitObjCMessageExprDispatchHelper(ObjCMessageExpr* ME, } } - // Check for any arguments that are uninitialized/undefined. - - for (ObjCMessageExpr::arg_iterator I = ME->arg_begin(), E = ME->arg_end(); - I != E; ++I) { - - if (state->getSVal(*I).isUndef()) { - - // Generate an error node for passing an uninitialized/undefined value - // as an argument to a message expression. This node is a sink. - ExplodedNode* N = Builder->generateNode(ME, state, Pred); - - if (N) { - N->markAsSink(); - MsgExprUndefArgs[N] = *I; - } - - return; - } - } - // Handle previsits checks. ExplodedNodeSet Src, DstTmp; Src.Add(Pred); |

