[cfe-commits] r93205 - /cfe/trunk/lib/Sema/SemaType.cpp

David Chisnall csdavec at swan.ac.uk
Mon Jan 11 15:08:09 PST 2010


Author: theraven
Date: Mon Jan 11 17:08:08 2010
New Revision: 93205

URL: http://llvm.org/viewvc/llvm-project?rev=93205&view=rev
Log:
Reverted r93198; done without reading relevant PR.


Modified:
    cfe/trunk/lib/Sema/SemaType.cpp

Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=93205&r1=93204&r2=93205&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Mon Jan 11 17:08:08 2010
@@ -651,10 +651,8 @@
     }
     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))





More information about the cfe-commits mailing list