diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-08 02:50:17 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-08 02:50:17 +0000 |
commit | d497206844a894a0557e927adf29b34fe960dffd (patch) | |
tree | 4b52f7eba08250d43628266b0b65e10ea2b5f087 /lib/Sema/SemaTemplateDeduction.cpp | |
parent | 43d9d9243329b1b75d1a6efdad9f16d6fb386b8e (diff) |
Get rid of Stmt::Clone now that we can reference count statements instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateDeduction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateDeduction.cpp b/lib/Sema/SemaTemplateDeduction.cpp index 7fb159fec7..b3d370ab12 100644 --- a/lib/Sema/SemaTemplateDeduction.cpp +++ b/lib/Sema/SemaTemplateDeduction.cpp @@ -328,8 +328,7 @@ static QualType getUnqualifiedArrayType(ASTContext &Context, QualType T, if (Elt == DSAT->getElementType()) return T; - // FIXME: Clone expression! - return Context.getDependentSizedArrayType(Elt, DSAT->getSizeExpr(), + return Context.getDependentSizedArrayType(Elt, DSAT->getSizeExpr()->Retain(), DSAT->getSizeModifier(), 0, SourceRange()); } |