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

Eli Friedman eli.friedman at gmail.com
Fri Feb 15 11:49:39 PST 2008


Author: efriedma
Date: Fri Feb 15 13:49:39 2008
New Revision: 47174

URL: http://llvm.org/viewvc/llvm-project?rev=47174&view=rev
Log:
Get rid of unused variable warning.


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=47174&r1=47173&r2=47174&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Fri Feb 15 13:49:39 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 (const VariableArrayType *VLA = T->getAsVariableArrayType()) {
+      if (T->isVariableArrayType()) {
         Diag(IDecl->getLocation(), diag::err_typecheck_illegal_vla);
         IDecl->setInvalidDecl();
       }





More information about the cfe-commits mailing list