diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-28 06:39:11 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-02-28 06:39:11 +0000 |
commit | 6b601395e79291ec98f596f724001976106b6f6e (patch) | |
tree | 9bd6becd009003e21dd091df1040e0ac09c5fa36 /lib/Checker/CallInliner.cpp | |
parent | 1a202b480417c1bcbac3412fc780cfccafb4ef5f (diff) |
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
Diffstat (limited to 'lib/Checker/CallInliner.cpp')
-rw-r--r-- | lib/Checker/CallInliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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. |