[cfe-commits] r107773 - /cfe/trunk/lib/CodeGen/CGRTTI.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Jul 7 05:24:18 PDT 2010


Author: akirtzidis
Date: Wed Jul  7 07:24:18 2010
New Revision: 107773

URL: http://llvm.org/viewvc/llvm-project?rev=107773&view=rev
Log:
getBody() -> hasBody()

Modified:
    cfe/trunk/lib/CodeGen/CGRTTI.cpp

Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=107773&r1=107772&r2=107773&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Wed Jul  7 07:24:18 2010
@@ -271,7 +271,7 @@
 
     // Get the key function.
     const CXXMethodDecl *KeyFunction = RD->getASTContext().getKeyFunction(RD);
-    if (KeyFunction && !KeyFunction->getBody()) {
+    if (KeyFunction && !KeyFunction->hasBody()) {
       // The class has a key function, but it is not defined in this translation
       // unit, so we should use the external descriptor for it.
       return true;





More information about the cfe-commits mailing list