summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
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
commita6778494fb5f5bd697b103ec019cb5486ab1cddc (patch)
tree58a2c10190d0d57c0e9d95ba1503e61ab5cd363d /clang/lib/Sema
parentc0bee2986c7e6253956a3b3eab3395b1ddc96ee4 (diff)
downloadbcm5719-llvm-a6778494fb5f5bd697b103ec019cb5486ab1cddc.tar.gz
bcm5719-llvm-a6778494fb5f5bd697b103ec019cb5486ab1cddc.zip
Revert r66423, which was not the right fix for this issue.
llvm-svn: 66431
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index c9a9f436f5f..faeebc06808 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud