diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-29 21:57:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-29 21:57:33 +0000 |
commit | d7c56e1114bfe7d461786903bb720d2c6efc05a1 (patch) | |
tree | d52935424d5de73be6fbd25adb5cbbcf2b3823d0 /lib/Sema/SemaType.cpp | |
parent | 0945f20f1c7263dab9a4d1eecd1d6fe822dbe65d (diff) |
Change the diagnostics which said 'accepted as an extension' to instead say
'is an extension'. The former is inappropriate and confusing when building with
-Werror/-pedantic-errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 34f6a93528..3cececb8c4 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -1357,9 +1357,9 @@ QualType Sema::BuildArrayType(QualType T, ArrayType::ArraySizeModifier ASM, else Diag(Loc, diag::ext_vla); } else if (ASM != ArrayType::Normal || Quals != 0) - Diag(Loc, + Diag(Loc, getLangOptions().CPlusPlus? diag::err_c99_array_usage_cxx - : diag::ext_c99_array_usage); + : diag::ext_c99_array_usage) << ASM; } return T; |