commit | 7ba9e9901573cb43bba9432e77434058b94264bb | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Sun Feb 28 06:39:11 2010 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Sun Feb 28 06:39:11 2010 +0000 |
tree | 4565e1150f7e6683d87f649d1ef65ec7cdc04472 | |
parent | 4c340c7f7ffb8ec4530369827645377d6d3fa0cd [diff] [blame] |
Use getBody() to get the function definition when the decl referenced is not definition. llvm-svn: 97373
diff --git a/clang/lib/Checker/CallInliner.cpp b/clang/lib/Checker/CallInliner.cpp index 659d9b8..88e1a05 100644 --- a/clang/lib/Checker/CallInliner.cpp +++ b/clang/lib/Checker/CallInliner.cpp
@@ -42,7 +42,7 @@ 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.