Use front() instead of [0] to make code more consistent with the next line that uses back().

llvm-svn: 250970
This commit is contained in:
Craig Topper 2015-10-22 01:56:16 +00:00
parent b70b956c80
commit d8040cfa9f
1 changed files with 1 additions and 1 deletions

View File

@ -4842,7 +4842,7 @@ Sema::ActOnCallExpr(Scope *S, Expr *Fn, SourceLocation LParenLoc,
// Pseudo-destructor calls should not have any arguments.
Diag(Fn->getLocStart(), diag::err_pseudo_dtor_call_with_args)
<< FixItHint::CreateRemoval(
SourceRange(ArgExprs[0]->getLocStart(),
SourceRange(ArgExprs.front()->getLocStart(),
ArgExprs.back()->getLocEnd()));
}