currBldrCtx = 0;
}
-static bool isDifferentDeclUsedAtRuntime(CallEventRef<> Call,
+static bool wasDifferentDeclUsedForInlining(CallEventRef<> Call,
const StackFrameContext *calleeCtx) {
const Decl *RuntimeCallee = calleeCtx->getDecl();
const Decl *StaticDecl = Call->getDecl();
- if (!RuntimeCallee || !StaticDecl)
- return false;
+ assert(RuntimeCallee);
+ if (!StaticDecl)
+ return true;
return RuntimeCallee->getCanonicalDecl() != StaticDecl->getCanonicalDecl();
}
SVal V = state->getSVal(RS, LCtx);
// Ensure that the return type matches the type of the returned Expr.
- if (isDifferentDeclUsedAtRuntime(Call, calleeCtx)) {
+ if (wasDifferentDeclUsedForInlining(Call, calleeCtx)) {
QualType ReturnedTy =
CallEvent::getDeclaredResultType(calleeCtx->getDecl());
if (!ReturnedTy.isNull()) {