[cfe-dev] [patch]Simplify code

Zhongxing Xu xuzhongxing at gmail.com
Sun Feb 14 19:22:19 PST 2010


Index: lib/AST/RecordLayoutBuilder.cpp
===================================================================
--- lib/AST/RecordLayoutBuilder.cpp	(版本 96163)
+++ lib/AST/RecordLayoutBuilder.cpp	(工作副本)
@@ -119,11 +119,9 @@
         return;
       }
     }
-    if (i->isVirtual()) {
-      SelectPrimaryVBase(Base, FirstPrimary);
-      if (PrimaryBase.getBase())
-        return;
-    }
+    SelectPrimaryVBase(Base, FirstPrimary);
+    if (PrimaryBase.getBase())
+      return;
   }
 }

 If we can reach here, the base is not virtual.




More information about the cfe-dev mailing list