Update to reflect changes in Clang.

Cannot use isa for TypeLoc classes since Clang r175462.
This commit is contained in:
Volodymyr Sapsai 2013-02-21 21:43:19 +00:00
parent 54e8373d68
commit e023906512
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ class BaseAstVisitor : public RecursiveASTVisitor<Derived> {
// system, off to the side. We don't care about qualifier
// positions, so avoid the need for special-casing by just
// traversing the unqualified version instead.
if (isa<QualifiedTypeLoc>(typeloc)) {
if (typeloc.getAs<QualifiedTypeLoc>()) {
typeloc = typeloc.getUnqualifiedLoc();
}
if (current_ast_node_->StackContainsContent(&typeloc))