diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-03-09 20:07:22 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-03-09 20:07:22 +0000 |
| commit | a6778494fb5f5bd697b103ec019cb5486ab1cddc (patch) | |
| tree | 58a2c10190d0d57c0e9d95ba1503e61ab5cd363d /clang/lib/Sema | |
| parent | c0bee2986c7e6253956a3b3eab3395b1ddc96ee4 (diff) | |
| download | bcm5719-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.cpp | 4 |
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); |

