forked from OSchip/llvm-project
Use hasSameType in one more, hopefully, last place.
llvm-svn: 125468
This commit is contained in:
parent
4de45dc6a7
commit
12834e19c1
|
@ -1826,8 +1826,8 @@ bool Sema::IsBlockPointerConversion(QualType FromType, QualType ToType,
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool IncompatibleObjC = false;
|
bool IncompatibleObjC = false;
|
||||||
if (Context.getCanonicalType(FromFunctionType->getResultType())
|
if (Context.hasSameType(FromFunctionType->getResultType(),
|
||||||
== Context.getCanonicalType(ToFunctionType->getResultType())) {
|
ToFunctionType->getResultType())) {
|
||||||
// Okay, the types match exactly. Nothing to do.
|
// Okay, the types match exactly. Nothing to do.
|
||||||
} else {
|
} else {
|
||||||
QualType RHS = FromFunctionType->getResultType();
|
QualType RHS = FromFunctionType->getResultType();
|
||||||
|
|
Loading…
Reference in New Issue