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;
|
||||
|
||||
bool IncompatibleObjC = false;
|
||||
if (Context.getCanonicalType(FromFunctionType->getResultType())
|
||||
== Context.getCanonicalType(ToFunctionType->getResultType())) {
|
||||
if (Context.hasSameType(FromFunctionType->getResultType(),
|
||||
ToFunctionType->getResultType())) {
|
||||
// Okay, the types match exactly. Nothing to do.
|
||||
} else {
|
||||
QualType RHS = FromFunctionType->getResultType();
|
||||
|
|
Loading…
Reference in New Issue