aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-20 15:47:46 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-20 15:47:46 +0000
commit722653023bec8e4be4d72377c8a929276ff10ff8 (patch)
treecff4604002451e6f52ec1bce67e292c56e08ee36 /lib/CodeGen/CGExprAgg.cpp
parente9979484670ca2b528146d1b681e149fdc29f7cc (diff)
Fix a thinko
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
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<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())