From: Fariborz Jahanian Date: Sun, 13 Feb 2011 20:11:42 +0000 (+0000) Subject: Use hasSameType in one more, hopefully, last place. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=462dae559c2377db365a8da1d84c5400284ebd30;p=clang Use hasSameType in one more, hopefully, last place. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125468 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 18c476482b..3d0608ea71 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -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();