aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-10 20:57:37 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-10 20:57:37 +0000
commit83f96f668d0bcc957ead2032fe6e6c475dc156e5 (patch)
tree765cb727bdc4be1dd7cc9954e28cb69d2c1f5074 /lib/AST/ASTContext.cpp
parent4e78fd0a960eaa7e97467f2e8f390f3a57da279b (diff)
Some cleanups to the dependent-types commit, as suggested by Sebastian
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 241dce6c95..233a661a4c 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -1210,7 +1210,6 @@ QualType ASTContext::getCanonicalType(QualType T) {
DSAT->getSizeModifier(),
DSAT->getIndexTypeQualifier());
- // FIXME: What is the ownership of size expressions in VLAs?
VariableArrayType *VAT = cast<VariableArrayType>(AT);
return getVariableArrayType(NewEltTy, VAT->getSizeExpr(),
VAT->getSizeModifier(),
@@ -1283,8 +1282,6 @@ const ArrayType *ASTContext::getAsArrayType(QualType T) {
IAT->getSizeModifier(),
IAT->getIndexTypeQualifier()));
- // FIXME: What is the ownership of size expressions in
- // dependent-sized array types?
if (const DependentSizedArrayType *DSAT
= dyn_cast<DependentSizedArrayType>(ATy))
return cast<ArrayType>(
@@ -1293,7 +1290,6 @@ const ArrayType *ASTContext::getAsArrayType(QualType T) {
DSAT->getSizeModifier(),
DSAT->getIndexTypeQualifier()));
- // FIXME: What is the ownership of size expressions in VLAs?
const VariableArrayType *VAT = cast<VariableArrayType>(ATy);
return cast<ArrayType>(getVariableArrayType(NewEltTy, VAT->getSizeExpr(),
VAT->getSizeModifier(),