aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-07-18 14:35:53 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-07-18 14:35:53 +0000
commitf48ee4482a502e0e0a2cba74bf45f06afbb66dd8 (patch)
tree7ee1d8d29629f134afc4082c1b394cf495dd8d91 /clang/lib/CodeGen/CodeGenFunction.h
parent3204a105e31987f7dc6b8cf61ac7a26be5cf6213 (diff)
downloadllvm-f48ee4482a502e0e0a2cba74bf45f06afbb66dd8.zip
llvm-f48ee4482a502e0e0a2cba74bf45f06afbb66dd8.tar.gz
llvm-f48ee4482a502e0e0a2cba74bf45f06afbb66dd8.tar.bz2
[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/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index f2bc402..b8e97ac 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2992,7 +2992,7 @@ public:
.getCanonicalType((*I).getNonReferenceType())
.getTypePtr() ==
getContext()
- .getCanonicalType(Arg->getType())
+ .getCanonicalType((*Arg)->getType())
.getTypePtr())) &&
"type mismatch in call argument!");
ArgTypes.push_back(*I);