From b964c1d84bdbad2ebdfce7081a619fbfe276b5f4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 9 Mar 2009 16:48:55 +0000 Subject: [PATCH] Fix a little FIXME, thanks to Sebastian git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66423 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaTemplateInstantiate.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index faeebc0680..c9a9f436f5 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -134,9 +134,7 @@ 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. - // 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); + IntegerLiteral ArraySize(T->getSize(), SemaRef.Context.getSizeType(), Loc); return SemaRef.BuildArrayType(ElementType, T->getSizeModifier(), &ArraySize, T->getIndexTypeQualifier(), Loc, Entity); -- 2.40.0