aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-02 13:05:45 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-02 13:05:45 +0000
commit6946baf3542dcb1ed0d98d0fdda451d1c39a49c2 (patch)
tree38d5ef5bc771a6c240b253ea29334df32975c8e0 /lib/AST/Type.cpp
parentd99f3615825bf1e26ac670f6c2c2b70b7b765e14 (diff)
When parsing typename specifiers (with either the identifier or
simple-template-id form), check whether the scope specifier is computable as a declaration context rather than checking whether it is dependent, so that we properly cope with members of the current instantiation. Improve testing for typename specifiers that terminate in a simpe-template-id. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index bf506415ac..c6ea357fbd 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -530,7 +530,7 @@ const TemplateSpecializationType *
Type::getAsTemplateSpecializationType() const {
// There is no sugar for class template specialization types, so
// just return the canonical type pointer if it is the right class.
- return dyn_cast<TemplateSpecializationType>(CanonicalType);
+ return this->getAs<TemplateSpecializationType>();
}
bool Type::isIntegerType() const {