Update to reflect changes in Clang.
Cannot use isa for TypeLoc classes since Clang r175462.
This commit is contained in:
parent
54e8373d68
commit
e023906512
2
iwyu.cc
2
iwyu.cc
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue