]> granicus.if.org Git - clang/commitdiff
Don't call non-existent method... sorry about the spam; the fix seemed
authorEli Friedman <eli.friedman@gmail.com>
Fri, 15 Feb 2008 19:53:52 +0000 (19:53 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 15 Feb 2008 19:53:52 +0000 (19:53 +0000)
trivial, but I forgot that method doesn't exist yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47175 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaDecl.cpp

index 137a188fbbd98d5e3f0ef134780c96860b50cd1d..8f1085c0ccd0a491e1774c6337ea269e6950b3e7 100644 (file)
@@ -897,7 +897,7 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
     // 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();
       }