diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2010-01-11 23:08:08 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2010-01-11 23:08:08 +0000 |
commit | af40776922bc5c28e740adb0342faa09f35b0068 (patch) | |
tree | ebc302f0c9a3ff704df09abc999e688f39819760 | |
parent | 91fbd12d8b6e60b72883ff4c42e2a0993087f876 (diff) |
Reverted r93198; done without reading relevant PR.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93205 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaType.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 0f9bd516b4..2bddf9ecd6 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -651,10 +651,8 @@ QualType Sema::BuildArrayType(QualType T, ArrayType::ArraySizeModifier ASM, } T = Context.getConstantArrayType(T, ConstVal, ASM, Quals); } - // If this is not C99 or C++ with GNU extenisons, extwarn about VLA's and C99 - // array size modifiers. - if (!getLangOptions().C99 && - !(getLangOptions().CPlusPlus && getLangOptions().GNUMode)) { + // If this is not C99, extwarn about VLA's and C99 array size modifiers. + if (!getLangOptions().C99) { if (ArraySize && !ArraySize->isTypeDependent() && !ArraySize->isValueDependent() && !ArraySize->isIntegerConstantExpr(Context)) |