forked from OSchip/llvm-project
Use getBody() to get the function definition when the decl referenced is not
definition. llvm-svn: 97373
This commit is contained in:
parent
4c340c7f7f
commit
7ba9e99015
|
@ -42,7 +42,7 @@ bool CallInliner::EvalCallExpr(CheckerContext &C, const CallExpr *CE) {
|
|||
if (!FD)
|
||||
return false;
|
||||
|
||||
if (!FD->isThisDeclarationADefinition())
|
||||
if (!FD->getBody(FD))
|
||||
return false;
|
||||
|
||||
// Now we have the definition of the callee, create a CallEnter node.
|
||||
|
|
Loading…
Reference in New Issue