Use hasSameType in one more, hopefully, last place.

llvm-svn: 125468
This commit is contained in:
Fariborz Jahanian 2011-02-13 20:11:42 +00:00
parent 4de45dc6a7
commit 12834e19c1
1 changed files with 2 additions and 2 deletions

View File

@ -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();