]> granicus.if.org Git - clang/commitdiff
Picky, picky
authorDouglas Gregor <dgregor@apple.com>
Thu, 20 May 2010 15:48:29 +0000 (15:48 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 20 May 2010 15:48:29 +0000 (15:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104230 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprAgg.cpp

index 2e408ede33e5627277fdf6bd8d92eed36cec95de..da2100df940dd17317b4e060c8abeeec7bcf8b8b 100644 (file)
@@ -757,7 +757,6 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr,
                                         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 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr,
               /*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;
     }