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())


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to