[analyzer] Use a stack-based local AGAIN to fix the build for real.

It's a good thing CallEvents aren't created all over the place yet.
I checked all the uses this time and the private copy constructor
/really/ shouldn't cause any more problems.

llvm-svn: 160845
This commit is contained in:
Jordan Rose 2012-07-27 00:47:52 +00:00
parent 4914cced62
commit de76c92b15
1 changed files with 16 additions and 11 deletions

View File

@ -400,21 +400,26 @@ void ExprEngine::VisitCallExpr(const CallExpr *CE, ExplodedNode *Pred,
// Evaluate the call.
switch (K) {
case CE_Function:
evalCall(dstCallEvaluated, *I, FunctionCall(CE, State, LCtx));
case CE_Function: {
FunctionCall Call(CE, State, LCtx);
evalCall(dstCallEvaluated, *I, Call);
break;
case CE_CXXMember:
evalCall(dstCallEvaluated, *I, CXXMemberCall(cast<CXXMemberCallExpr>(CE),
State, LCtx));
}
case CE_CXXMember: {
CXXMemberCall Call(cast<CXXMemberCallExpr>(CE), State, LCtx);
evalCall(dstCallEvaluated, *I, Call);
break;
case CE_CXXMemberOperator:
evalCall(dstCallEvaluated, *I,
CXXMemberOperatorCall(cast<CXXOperatorCallExpr>(CE),
State, LCtx));
}
case CE_CXXMemberOperator: {
CXXMemberOperatorCall Call(cast<CXXOperatorCallExpr>(CE), State, LCtx);
evalCall(dstCallEvaluated, *I, Call);
break;
case CE_Block:
evalCall(dstCallEvaluated, *I, BlockCall(CE, State, LCtx));
}
case CE_Block: {
BlockCall Call(CE, State, LCtx);
evalCall(dstCallEvaluated, *I, Call);
break;
}
default:
llvm_unreachable("Non-CallExpr CallEventKind");
}