diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-18 14:35:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-07-18 14:35:53 +0000 |
commit | f48ee4482a502e0e0a2cba74bf45f06afbb66dd8 (patch) | |
tree | 7ee1d8d29629f134afc4082c1b394cf495dd8d91 /clang/lib/CodeGen/CGClass.cpp | |
parent | 3204a105e31987f7dc6b8cf61ac7a26be5cf6213 (diff) | |
download | bcm5719-llvm-f48ee4482a502e0e0a2cba74bf45f06afbb66dd8.tar.gz bcm5719-llvm-f48ee4482a502e0e0a2cba74bf45f06afbb66dd8.zip |
[AST] Cleanup ExprIterator.
- Make it a proper random access iterator with a little help from iterator_adaptor_base
- Clean up users of magic dereferencing. The iterator should behave like an Expr **.
- Make it an implementation detail of Stmt. This allows inlining of the assertions.
llvm-svn: 242608
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
-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 9c18b860920..52aac0be3d6 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -1832,7 +1832,7 @@ CodeGenFunction::EmitSynthesizedCXXCopyCtorCall(const CXXConstructorDecl *D, "trivial 1-arg ctor not a copy/move ctor"); EmitAggregateCopyCtor(This, Src, getContext().getTypeDeclType(D->getParent()), - E->arg_begin()->getType()); + (*E->arg_begin())->getType()); return; } llvm::Value *Callee = CGM.getAddrOfCXXStructor(D, StructorType::Complete); |