From eae859a61f7cca91200a49192052d8a50e18e1be Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Thu, 8 Nov 2012 16:01:51 +0000 Subject: [PATCH] Readded line removed by mistake. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167587 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.40.0