From: Zhongxing Xu Date: Sun, 28 Feb 2010 06:39:11 +0000 (+0000) Subject: Use getBody() to get the function definition when the decl referenced is not X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b601395e79291ec98f596f724001976106b6f6e;p=clang Use getBody() to get the function definition when the decl referenced is not definition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97373 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Checker/CallInliner.cpp b/lib/Checker/CallInliner.cpp index 659d9b8bcf..88e1a05d11 100644 --- a/lib/Checker/CallInliner.cpp +++ b/lib/Checker/CallInliner.cpp @@ -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.