forked from OSchip/llvm-project
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:
parent
b26be3d053
commit
5c9490924c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue