[cfe-commits] r148775 - /cfe/trunk/lib/Analysis/CFG.cpp

David Blaikie dblaikie at gmail.com
Mon Jan 23 20:29:23 PST 2012


Author: dblaikie
Date: Mon Jan 23 22:29:23 2012
New Revision: 148775

URL: http://llvm.org/viewvc/llvm-project?rev=148775&view=rev
Log:
Support undefined dependent bases.

Modified:
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=148775&r1=148774&r2=148775&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Mon Jan 23 22:29:23 2012
@@ -750,13 +750,12 @@
   // Before virtual bases destroy direct base objects.
   for (CXXRecordDecl::base_class_const_iterator BI = RD->bases_begin(),
       BE = RD->bases_end(); BI != BE; ++BI) {
-    if (!BI->isVirtual()) {
-      const CXXRecordDecl *CD = BI->getType()->getAsCXXRecordDecl();
-      if (!CD->hasTrivialDestructor()) {
-        autoCreateBlock();
-        appendBaseDtor(Block, BI);
-      }
-    }
+    if (!BI->isVirtual())
+      if (const CXXRecordDecl *CD = BI->getType()->getAsCXXRecordDecl())
+        if (!CD->hasTrivialDestructor()) {
+          autoCreateBlock();
+          appendBaseDtor(Block, BI);
+        }
   }
 
   // First destroy member objects.





More information about the cfe-commits mailing list