diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-26 20:18:26 +0000 | 
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-26 20:18:26 +0000 | 
| commit | 96fd0a48ec8d315f8418352a62f0ee288856c4c1 (patch) | |
| tree | d58c61e5f8cedda91874c0c66a760851e4806eee /clang/lib/CodeGen | |
| parent | 16e1ba1e0ba6449705ebd8fc18fa3de3e0835b2a (diff) | |
| download | bcm5719-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.cpp | 2 | 
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());  | 

