From c19108118d5ade18397d0f03718875a221a9dfec Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 20 May 2010 15:47:46 +0000 Subject: Fix a thinko llvm-svn: 104229 --- clang/lib/CodeGen/CGExprAgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGExprAgg.cpp') diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index b467dbc875c9..2e408ede33e5 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/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