Don't call non-existent method... sorry about the spam; the fix seemed

trivial, but I forgot that method doesn't exist yet.

llvm-svn: 47175
This commit is contained in:
Eli Friedman 2008-02-15 19:53:52 +00:00
parent b26be3d053
commit 5c9490924c
1 changed files with 1 additions and 1 deletions

View 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();
}