forked from OSchip/llvm-project
parent
75fb677fd1
commit
3b8a9e5e6b
|
@ -4703,6 +4703,7 @@ bool Sema::CheckVariableDeclaration(VarDecl *NewVD,
|
|||
}
|
||||
|
||||
Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size);
|
||||
NewVD->setType(FixedTInfo->getType());
|
||||
NewVD->setTypeSourceInfo(FixedTInfo);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue