summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-08-26 20:18:26 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-08-26 20:18:26 +0000
commit96fd0a48ec8d315f8418352a62f0ee288856c4c1 (patch)
treed58c61e5f8cedda91874c0c66a760851e4806eee /clang/lib/CodeGen
parent16e1ba1e0ba6449705ebd8fc18fa3de3e0835b2a (diff)
downloadbcm5719-llvm-96fd0a48ec8d315f8418352a62f0ee288856c4c1.tar.gz
bcm5719-llvm-96fd0a48ec8d315f8418352a62f0ee288856c4c1.zip
Fix an incorrect assert condition added in r216410.
llvm-svn: 216479
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 9c1f548c836..6f7dfefa951 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -1692,7 +1692,7 @@ CodeGenFunction::EmitSynthesizedCXXCopyCtorCall(const CXXConstructorDecl *D,
llvm::Value *This, llvm::Value *Src,
const CXXConstructExpr *E) {
if (D->isTrivial()) {
- assert(E->getNumArgs() && "unexpected argcount for trivial ctor");
+ assert(E->getNumArgs() == 1 && "unexpected argcount for trivial ctor");
assert(D->isCopyOrMoveConstructor() &&
"trivial 1-arg ctor not a copy/move ctor");
EmitAggregateCopy(This, Src, E->arg_begin()->getType());
OpenPOWER on IntegriCloud