]> granicus.if.org Git - clang/commitdiff
Use hasSameType in one more, hopefully, last place.
authorFariborz Jahanian <fjahanian@apple.com>
Sun, 13 Feb 2011 20:11:42 +0000 (20:11 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sun, 13 Feb 2011 20:11:42 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125468 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 18c476482b52c0b4150d97e2c77c75fc4da4bbbb..3d0608ea71f3201b16d3de608fd74c3f01252274 100644 (file)
@@ -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();