summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-20 15:48:29 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-20 15:48:29 +0000
commit265b8b8de065f15e3026457bba7e23dd0216b01b (patch)
tree18e212df229b37d2192ce5f8b732d539577a3db3 /clang/lib/CodeGen/CGExprAgg.cpp
parentc19108118d5ade18397d0f03718875a221a9dfec (diff)
downloadbcm5719-llvm-265b8b8de065f15e3026457bba7e23dd0216b01b.tar.gz
bcm5719-llvm-265b8b8de065f15e3026457bba7e23dd0216b01b.zip
Picky, picky
llvm-svn: 104230
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 2e408ede33e..da2100df940 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -757,7 +757,6 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr,
bool isVolatile) {
assert(!Ty->isAnyComplexType() && "Shouldn't happen for complex");
- // Ignore empty classes in C++.
if (getContext().getLangOptions().CPlusPlus) {
if (const RecordType *RT = Ty->getAs<RecordType>()) {
CXXRecordDecl *Record = cast<CXXRecordDecl>(RT->getDecl());
@@ -766,6 +765,7 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr,
/*FIXME!*/getContext().getLangOptions().ObjC1) &&
"Trying to aggregate-copy a type without a trivial copy "
"constructor or assignment operator");
+ // Ignore empty classes in C++.
if (Record->isEmpty())
return;
}
OpenPOWER on IntegriCloud