]> granicus.if.org Git - clang/commitdiff
Fix a little FIXME, thanks to Sebastian
authorDouglas Gregor <dgregor@apple.com>
Mon, 9 Mar 2009 16:48:55 +0000 (16:48 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 9 Mar 2009 16:48:55 +0000 (16:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66423 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaTemplateInstantiate.cpp

index faeebc0680833b60a02a0310e55ecf41219f0394..c9a9f436f5f57efe9217b8f927b599ae9453111d 100644 (file)
@@ -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);