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

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 18:56:16 PDT 2015


Author: ctopper
Date: Wed Oct 21 20:56:16 2015
New Revision: 250970

URL: http://llvm.org/viewvc/llvm-project?rev=250970&view=rev
Log:
Use front() instead of [0] to make code more consistent with the next line that uses back().

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=250970&r1=250969&r2=250970&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Oct 21 20:56:16 2015
@@ -4842,7 +4842,7 @@ Sema::ActOnCallExpr(Scope *S, Expr *Fn,
         // 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()));
       }
 




More information about the cfe-commits mailing list