aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-09 20:07:22 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-09 20:07:22 +0000
commit8d21721fe9672a6742ad5430f48ea3aa4518528a (patch)
treedb7976afb745c2a1473f8a75b9b9179783572b0f
parentcad3df8412a6b722b7306db7d0403c548b3fbba1 (diff)
Revert r66423, which was not the right fix for this issue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66431 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaTemplateInstantiate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp
index c9a9f436f5..faeebc0680 100644
--- a/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/lib/Sema/SemaTemplateInstantiate.cpp
@@ -134,7 +134,9 @@ InstantiateConstantArrayType(const ConstantArrayType *T,
// BuildArrayType. Since we have already checked the size as part of
// creating the dependent array type in the first place, we know
// there aren't any errors.
- IntegerLiteral ArraySize(T->getSize(), SemaRef.Context.getSizeType(), Loc);
+ // FIXME: Is IntTy big enough? Maybe not, but LongLongTy causes
+ // problems that I have yet to investigate.
+ IntegerLiteral ArraySize(T->getSize(), SemaRef.Context.IntTy, Loc);
return SemaRef.BuildArrayType(ElementType, T->getSizeModifier(),
&ArraySize, T->getIndexTypeQualifier(),
Loc, Entity);