forked from OSchip/llvm-project
Improve caret location for the GNU old-style field designator warning, from David Blaikie
llvm-svn: 138684
This commit is contained in:
parent
be861783d2
commit
afeabec7e1
|
@ -90,7 +90,7 @@ ExprResult Parser::ParseInitializerWithPotentialDesignator() {
|
|||
assert(Tok.is(tok::colon) && "MayBeDesignationStart not working properly!");
|
||||
SourceLocation ColonLoc = ConsumeToken();
|
||||
|
||||
Diag(Tok, diag::ext_gnu_old_style_field_designator)
|
||||
Diag(NameLoc, diag::ext_gnu_old_style_field_designator)
|
||||
<< FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc),
|
||||
NewSyntax.str());
|
||||
|
||||
|
|
Loading…
Reference in New Issue