forked from OSchip/llvm-project
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:
parent
b70b956c80
commit
d8040cfa9f
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue