aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiateDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-01 19:49:17 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-01 19:49:17 +0000
commite9146f2e9f1c4e281544e8c080934c72d41012ca (patch)
treef8781e0ab60368e1fbd949134bda081601e9aa7a /lib/Sema/SemaTemplateInstantiateDecl.cpp
parentf1b1d59a3f0650ab97b04235a14ae4549ca1c656 (diff)
Replace more release+static_cast with takeAs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiateDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiateDecl.cpp b/lib/Sema/SemaTemplateInstantiateDecl.cpp
index d7e81127a7..62c717b6d3 100644
--- a/lib/Sema/SemaTemplateInstantiateDecl.cpp
+++ b/lib/Sema/SemaTemplateInstantiateDecl.cpp
@@ -171,7 +171,7 @@ Decl *TemplateDeclInstantiator::VisitFieldDecl(FieldDecl *D) {
Invalid = true;
BitWidth = 0;
} else
- BitWidth = (Expr *)InstantiatedBitWidth.release();
+ BitWidth = InstantiatedBitWidth.takeAs<Expr>();
}
FieldDecl *Field = SemaRef.CheckFieldDecl(D->getDeclName(), T,