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 659d9b8..88e1a05 100644
--- a/lib/Checker/CallInliner.cpp
+++ b/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.