[cfe-commits] r47175 - /cfe/trunk/Sema/SemaDecl.cpp

Eli Friedman eli.friedman at gmail.com
Fri Feb 15 11:53:52 PST 2008


Author: efriedma
Date: Fri Feb 15 13:53:52 2008
New Revision: 47175

URL: http://llvm.org/viewvc/llvm-project?rev=47175&view=rev
Log:
Don't call non-existent method... sorry about the spam; the fix seemed 
trivial, but I forgot that method doesn't exist yet.


Modified:
    cfe/trunk/Sema/SemaDecl.cpp

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=47175&r1=47174&r2=47175&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Fri Feb 15 13:53:52 2008
@@ -897,7 +897,7 @@
     // C99 6.7.5.2p2: If an identifier is declared to be an object with 
     // static storage duration, it shall not have a variable length array.
     if ((FVD || BVD) && IDecl->getStorageClass() == VarDecl::Static) {
-      if (T->isVariableArrayType()) {
+      if (T->getAsVariableArrayType()) {
         Diag(IDecl->getLocation(), diag::err_typecheck_illegal_vla);
         IDecl->setInvalidDecl();
       }





More information about the cfe-commits mailing list