[cfe-commits] r97373 - /cfe/trunk/lib/Checker/CallInliner.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sat Feb 27 22:39:11 PST 2010


Author: zhongxingxu
Date: Sun Feb 28 00:39:11 2010
New Revision: 97373

URL: http://llvm.org/viewvc/llvm-project?rev=97373&view=rev
Log:
Use getBody() to get the function definition when the decl referenced is not
definition.

Modified:
    cfe/trunk/lib/Checker/CallInliner.cpp

Modified: cfe/trunk/lib/Checker/CallInliner.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/CallInliner.cpp?rev=97373&r1=97372&r2=97373&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/CallInliner.cpp (original)
+++ cfe/trunk/lib/Checker/CallInliner.cpp Sun Feb 28 00:39:11 2010
@@ -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.





More information about the cfe-commits mailing list