summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-10-16 00:14:28 +0000
committerJohn McCall <rjmccall@apple.com>2009-10-16 00:14:28 +0000
commitc5b8225285fb47be39fe0af7f3339844e39f2d35 (patch)
treead3e9f0289502d0bfd4271a29dad4ba82184b77c /clang/lib/Sema/SemaInit.cpp
parentdae45e90797558506785c07c318ec1f645a0871a (diff)
downloadbcm5719-llvm-c5b8225285fb47be39fe0af7f3339844e39f2d35.tar.gz
bcm5719-llvm-c5b8225285fb47be39fe0af7f3339844e39f2d35.zip
Remove the ConstantArrayType subtypes. This information is preserved in the
TypeLoc records for declarations; it should not be necessary to represent it directly in the type system. Please complain if you were using these classes and feel you can't replicate previous functionality using the TypeLoc API. llvm-svn: 84222
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 27f08968076..4746a2597e5 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -109,9 +109,9 @@ static void CheckStringInit(Expr *Str, QualType &DeclT, Sema &S) {
llvm::APSInt ConstVal(32);
ConstVal = StrLength;
// Return a new array type (C99 6.7.8p22).
- DeclT = S.Context.getConstantArrayWithoutExprType(IAT->getElementType(),
- ConstVal,
- ArrayType::Normal, 0);
+ DeclT = S.Context.getConstantArrayType(IAT->getElementType(),
+ ConstVal,
+ ArrayType::Normal, 0);
return;
}
OpenPOWER on IntegriCloud