aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2012-08-29 12:35:14 +0000
committerAaron Ballman <aaron@aaronballman.com>2012-08-29 12:35:14 +0000
commita14f400e4c4239b92137fc8aab1ac4700a209591 (patch)
treed5f2a95dfb8289ee6dc6d872ec858876f3f59592 /lib/Sema/DeclSpec.cpp
parent29f431b3e310ae6bd367dccf5a2794ad1cac9592 (diff)
Reversing the logic since C99 mode is actually not an extension. Also, changing the group to the singular to match the diagnostic better.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/DeclSpec.cpp')
-rw-r--r--lib/Sema/DeclSpec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/DeclSpec.cpp b/lib/Sema/DeclSpec.cpp
index e8ce9ac01c..8fdb07029a 100644
--- a/lib/Sema/DeclSpec.cpp
+++ b/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;