[cfe-commits] r78254 - /cfe/trunk/lib/CodeGen/CGCXX.cpp

Mike Stump mrs at apple.com
Wed Aug 5 15:59:53 PDT 2009


Author: mrs
Date: Wed Aug  5 17:59:44 2009
New Revision: 78254

URL: http://llvm.org/viewvc/llvm-project?rev=78254&view=rev
Log:
Refactor some bits.

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

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=78254&r1=78253&r2=78254&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Wed Aug  5 17:59:44 2009
@@ -661,7 +661,7 @@
   }
 
   // Initialize the vtable pointer
-  if (ClassDecl->isPolymorphic() || ClassDecl->getNumVBases()) {
+  if (ClassDecl->isDynamicClass()) {
     if (!LoadOfThis)
       LoadOfThis = LoadCXXThis();
     llvm::Value *VtableField;





More information about the cfe-commits mailing list