Remove ASTContext::getCanonicalDecl() and use Decl::getCanonicalDecl in its place.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76274 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index d0d61c6..503f226 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -3764,7 +3764,7 @@
assert(FunctionType
== Context.getCanonicalType(Specialization->getType()));
Matches.insert(
- cast<FunctionDecl>(Context.getCanonicalDecl(Specialization)));
+ cast<FunctionDecl>(Specialization->getCanonicalDecl()));
}
}
@@ -3778,7 +3778,7 @@
if (FunctionDecl *FunDecl = dyn_cast<FunctionDecl>(*Fun)) {
if (FunctionType == Context.getCanonicalType(FunDecl->getType())) {
- Matches.insert(cast<FunctionDecl>(Context.getCanonicalDecl(*Fun)));
+ Matches.insert(cast<FunctionDecl>(Fun->getCanonicalDecl()));
FoundNonTemplateFunction = true;
}
}