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

Douglas Gregor dgregor at apple.com
Thu May 20 08:47:46 PDT 2010


Author: dgregor
Date: Thu May 20 10:47:46 2010
New Revision: 104229

URL: http://llvm.org/viewvc/llvm-project?rev=104229&view=rev
Log:
Fix a thinko

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=104229&r1=104228&r2=104229&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Thu May 20 10:47:46 2010
@@ -763,7 +763,7 @@
       CXXRecordDecl *Record = cast<CXXRecordDecl>(RT->getDecl());
       assert((Record->hasTrivialCopyConstructor() || 
               Record->hasTrivialCopyAssignment() ||
-              /*FIXME!*/getContext().getLangOptions().CPlusPlus) &&
+              /*FIXME!*/getContext().getLangOptions().ObjC1) &&
              "Trying to aggregate-copy a type without a trivial copy "
              "constructor or assignment operator");
       if (Record->isEmpty())





More information about the cfe-commits mailing list