diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2012-08-29 12:35:14 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2012-08-29 12:35:14 +0000 |
commit | d5a176dbad878b8e44e096d2cc7558bd6fa31355 (patch) | |
tree | eedd62f3a4b7824dde53550ac8ea1bcc2c57a7d9 /clang/lib/Sema/DeclSpec.cpp | |
parent | 2efa2c33ec4351538a82c307b47312b69a0b0e82 (diff) | |
download | bcm5719-llvm-d5a176dbad878b8e44e096d2cc7558bd6fa31355.tar.gz bcm5719-llvm-d5a176dbad878b8e44e096d2cc7558bd6fa31355.zip |
Reversing the logic since C99 mode is actually not an extension. Also, changing the group to the singular to match the diagnostic better.
llvm-svn: 162838
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r-- | clang/lib/Sema/DeclSpec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index e8ce9ac01c3..8fdb07029a5 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -681,9 +681,9 @@ bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, // not what the user intended, we will always warn. We do not need to set the // qualifier's location since we already have it. if (TypeQualifiers & T) { - bool IsExtension = false; + bool IsExtension = true; if (Lang.C99 || (Lang.CPlusPlus0x && !IsTypeSpec)) - IsExtension = true; + IsExtension = false; return BadSpecifier(T, T, PrevSpec, DiagID, IsExtension); } TypeQualifiers |= T; |