[cfe-commits] r104230 - /cfe/trunk/lib/CodeGen/CGExprAgg.cpp

Douglas Gregor dgregor at apple.com
Thu May 20 08:48:29 PDT 2010


Author: dgregor
Date: Thu May 20 10:48:29 2010
New Revision: 104230

URL: http://llvm.org/viewvc/llvm-project?rev=104230&view=rev
Log:
Picky, picky

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

Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprAgg.cpp?rev=104230&r1=104229&r2=104230&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Thu May 20 10:48:29 2010
@@ -757,7 +757,6 @@
                                         bool isVolatile) {
   assert(!Ty->isAnyComplexType() && "Shouldn't happen for complex");
 
-  // Ignore empty classes in C++.
   if (getContext().getLangOptions().CPlusPlus) {
     if (const RecordType *RT = Ty->getAs<RecordType>()) {
       CXXRecordDecl *Record = cast<CXXRecordDecl>(RT->getDecl());
@@ -766,6 +765,7 @@
               /*FIXME!*/getContext().getLangOptions().ObjC1) &&
              "Trying to aggregate-copy a type without a trivial copy "
              "constructor or assignment operator");
+      // Ignore empty classes in C++.
       if (Record->isEmpty())
         return;
     }





More information about the cfe-commits mailing list