From fbe6dba15a02fdf30fdbdce40ea15b6452867bce Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Tue, 10 Jul 2012 22:07:52 +0000 Subject: [analyzer] Make CallEnter, CallExitBegin, and CallExitEnd not be StmtPoints These ProgramPoints are used in inlining calls, and not all calls have associated statements anymore. llvm-svn: 160021 --- clang/lib/StaticAnalyzer/Core/CoreEngine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/StaticAnalyzer/Core/CoreEngine.cpp') diff --git a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp index 689f05714ff..d7a4baa0a85 100644 --- a/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp @@ -265,7 +265,8 @@ void CoreEngine::dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc, } default: assert(isa(Loc) || - isa(Loc)); + isa(Loc) || + isa(Loc)); HandlePostStmt(WU.getBlock(), WU.getIndex(), Pred); break; } @@ -539,10 +540,9 @@ ExplodedNode *CoreEngine::generateCallExitBeginNode(ExplodedNode *N) { // Create a CallExitBegin node and enqueue it. const StackFrameContext *LocCtx = cast(N->getLocationContext()); - const Stmt *CE = LocCtx->getCallSite(); // Use the the callee location context. - CallExitBegin Loc(CE, LocCtx); + CallExitBegin Loc(LocCtx); bool isNew; ExplodedNode *Node = G->getNode(Loc, N->getState(), false, &isNew); -- cgit v1.2.3