From: Abramo Bagnara Date: Thu, 8 Nov 2012 16:01:51 +0000 (+0000) Subject: Readded line removed by mistake. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eae859a61f7cca91200a49192052d8a50e18e1be;p=clang Readded line removed by mistake. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167587 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 3292dce516..dde875007b 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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); }