From: Craig Topper Date: Thu, 22 Oct 2015 01:56:16 +0000 (+0000) Subject: Use front() instead of [0] to make code more consistent with the next line that uses... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5403247ced3b363f025fbd523f157942a4929018;p=clang Use front() instead of [0] to make code more consistent with the next line that uses back(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250970 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index d640a12698..f326285285 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -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())); }