forked from OSchip/llvm-project
Fix potential null dereference in the static analyzer when inlining a call that has already been inlined. Unfortunately I have no test case.
llvm-svn: 153900
This commit is contained in:
parent
98bcde4264
commit
3b008eecf4
|
@ -202,10 +202,11 @@ bool ExprEngine::InlineCall(ExplodedNodeSet &Dst,
|
|||
|
||||
CallEnter Loc(CE, CalleeSFC, Pred->getLocationContext());
|
||||
bool isNew;
|
||||
ExplodedNode *N = G.getNode(Loc, state, false, &isNew);
|
||||
N->addPredecessor(Pred, G);
|
||||
if (isNew)
|
||||
Engine.getWorkList()->enqueue(N);
|
||||
if (ExplodedNode *N = G.getNode(Loc, state, false, &isNew)) {
|
||||
N->addPredecessor(Pred, G);
|
||||
if (isNew)
|
||||
Engine.getWorkList()->enqueue(N);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue