From 722653023bec8e4be4d72377c8a929276ff10ff8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 20 May 2010 15:47:46 +0000 Subject: Fix a thinko git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104229 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprAgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGExprAgg.cpp') diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index b467dbc875..2e408ede33 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -763,7 +763,7 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr, CXXRecordDecl *Record = cast(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()) -- cgit v1.2.3