Factor out duplication between ExprIterator and ConstExprIterator.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Feb 2019 21:58:17 +0000 (21:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Feb 2019 21:58:17 +0000 (21:58 +0000)
commit259e1bdfdd2cb1c9bbcb6e0ce9014ad66535d27f
treeb853fda32cd314141fad98d11ab3732a9968e8ba
parent70d484d94e3ec1f6c563b3f2e85f88becb977a41
Factor out duplication between ExprIterator and ConstExprIterator.

This also exposes a more general iterator cast mechanism suitable for
use in http://reviews.llvm.org/D56571.

llvm-svn: 352925
clang/include/clang/AST/Stmt.h
clang/lib/CodeGen/CGCoroutine.cpp