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 | 7ba9e9901573cb43bba9432e77434058b94264bb (patch) | |
| tree | 4565e1150f7e6683d87f649d1ef65ec7cdc04472 | |
| parent | 4c340c7f7ffb8ec4530369827645377d6d3fa0cd (diff) | |
| download | bcm5719-llvm-7ba9e9901573cb43bba9432e77434058b94264bb.tar.gz bcm5719-llvm-7ba9e9901573cb43bba9432e77434058b94264bb.zip | |
Use getBody() to get the function definition when the decl referenced is not
definition.
llvm-svn: 97373
| -rw-r--r-- | clang/lib/Checker/CallInliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/CallInliner.cpp b/clang/lib/Checker/CallInliner.cpp index 659d9b8bcfa..88e1a05d119 100644 --- a/clang/lib/Checker/CallInliner.cpp +++ b/clang/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. |

