projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75fb677
)
Readded line removed by mistake.
author
Abramo Bagnara
<abramo.bagnara@bugseng.com>
Thu, 8 Nov 2012 16:01:51 +0000
(16:01 +0000)
committer
Abramo Bagnara
<abramo.bagnara@bugseng.com>
Thu, 8 Nov 2012 16:01:51 +0000
(16:01 +0000)
llvm-svn: 167587
clang/lib/Sema/SemaDecl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaDecl.cpp
b/clang/lib/Sema/SemaDecl.cpp
index
3292dce
..
dde8750
100644
(file)
--- a/
clang/lib/Sema/SemaDecl.cpp
+++ b/
clang/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);
}