Rename Sema::hasSameType to QualType::isSameAs
Rename Sema::hasSameUnqualifiedType to QualType::isSameIgnoringQalifiers
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64307 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp
index d816151..86f1e20 100644
--- a/lib/Sema/SemaTemplate.cpp
+++ b/lib/Sema/SemaTemplate.cpp
@@ -919,7 +919,7 @@
(ParamType->isMemberPointerType() &&
ParamType->getAsMemberPointerType()->getPointeeType()
->isFunctionType())) {
- if (hasSameUnqualifiedType(ArgType, ParamType.getNonReferenceType())) {
+ if (ArgType.isSameIgnoringQualifiers(ParamType.getNonReferenceType())) {
// We don't have to do anything: the types already match.
} else if (ArgType->isFunctionType() && ParamType->isPointerType()) {
ArgType = Context.getPointerType(ArgType);
@@ -934,7 +934,7 @@
}
}
- if (!hasSameUnqualifiedType(ArgType, ParamType.getNonReferenceType())) {
+ if (!ArgType.isSameIgnoringQualifiers(ParamType.getNonReferenceType())) {
// We can't perform this conversion.
Diag(Arg->getSourceRange().getBegin(),
diag::err_template_arg_not_convertible)
@@ -964,7 +964,7 @@
ImpCastExprToType(Arg, ParamType);
}
- if (!hasSameUnqualifiedType(ArgType, ParamType)) {
+ if (!ArgType.isSameIgnoringQualifiers(ParamType)) {
// We can't perform this conversion.
Diag(Arg->getSourceRange().getBegin(),
diag::err_template_arg_not_convertible)
@@ -987,7 +987,7 @@
assert(ParamRefType->getPointeeType()->isObjectType() &&
"Only object references allowed here");
- if (!hasSameUnqualifiedType(ParamRefType->getPointeeType(), ArgType)) {
+ if (!ArgType.isSameIgnoringQualifiers(ParamRefType->getPointeeType())) {
Diag(Arg->getSourceRange().getBegin(),
diag::err_template_arg_no_ref_bind)
<< Param->getType() << Arg->getType()
@@ -1019,7 +1019,7 @@
// member, qualification conversions (4.4) are applied.
assert(ParamType->isMemberPointerType() && "Only pointers to members remain");
- if (hasSameUnqualifiedType(ParamType, ArgType)) {
+ if (ParamType.isSameIgnoringQualifiers(ArgType)) {
// Types match exactly: nothing more to do here.
} else if (IsQualificationConversion(ArgType, ParamType)) {
ImpCastExprToType(Arg, ParamType);