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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits