]> granicus.if.org Git - clang/commitdiff
Use getBody() to get the function definition when the decl referenced is not
authorZhongxing Xu <xuzhongxing@gmail.com>
Sun, 28 Feb 2010 06:39:11 +0000 (06:39 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sun, 28 Feb 2010 06:39:11 +0000 (06:39 +0000)
definition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/CallInliner.cpp

index 659d9b8bcfa4c76e48e3147f3b1a4df446e3dd12..88e1a05d1191b9d4c090bf24b988190b3486b570 100644 (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.