diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2019-08-27 14:41:39 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2019-08-27 14:41:39 +0000 |
commit | b20dcef8a7058dce63ed3f43543162813e61ea95 (patch) | |
tree | c57903553b196c4af1182b49c2459f6a493f645a /lib/Parse/ParseDecl.cpp | |
parent | 46f2f7147d0faaf017ecf7b0d3cca4e78c3f8d96 (diff) | |
download | clang-b20dcef8a7058dce63ed3f43543162813e61ea95.tar.gz |
Replace some custom C11 extension warnings with the generic warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 1375409a75..9b3b5c77ff 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -3626,7 +3626,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, } case tok::kw__Noreturn: if (!getLangOpts().C11) - Diag(Loc, diag::ext_c11_noreturn); + Diag(Tok, diag::ext_c11_feature) << Tok.getName(); isInvalid = DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID); break; |