diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-20 15:48:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-20 15:48:29 +0000 |
commit | 419aa964ae845aa5b1183fabb2f1cff78faaeddd (patch) | |
tree | 64e1b413f05616da8f42e254033e1016efd5bc2c /lib/CodeGen/CGExprAgg.cpp | |
parent | 722653023bec8e4be4d72377c8a929276ff10ff8 (diff) |
Picky, picky
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 2e408ede33..da2100df94 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/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; } |