Use getBody() to get the function definition when the decl referenced is not

definition.

llvm-svn: 97373
This commit is contained in:
Zhongxing Xu 2010-02-28 06:39:11 +00:00
parent 4c340c7f7f
commit 7ba9e99015
1 changed files with 1 additions and 1 deletions

View File

@ -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.