[clang-modernize] Don't rely on iterator auto-dereferencing.

llvm-svn: 242607
This commit is contained in:
Benjamin Kramer 2015-07-18 14:35:41 +00:00
parent 136f35e1cb
commit 3204a105e3
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void IteratorReplacer::run(const MatchFinder::MatchResult &Result) {
"Expected constructor with single argument");
// Drill down to the as-written initializer.
const Expr *E = Construct->arg_begin()->IgnoreParenImpCasts();
const Expr *E = (*Construct->arg_begin())->IgnoreParenImpCasts();
if (E != E->IgnoreConversionOperator())
// We hit a conversion operator. Early-out now as they imply an implicit
// conversion from a different type. Could also mean an explicit