@@ -383,7 +383,7 @@ namespace {
383383 return true ;
384384
385385 // Don't favor narrowing conversions.
386- if (argTy->isDouble () && paramTy->isCGFloatType ())
386+ if (argTy->isDouble () && paramTy->isCGFloat ())
387387 return false ;
388388
389389 llvm::SmallSetVector<ProtocolDecl *, 2 > literalProtos;
@@ -420,7 +420,7 @@ namespace {
420420 // it is the same as the parameter type.
421421 // Check whether there is a default type to compare against.
422422 if (paramTy->isEqual (defaultType) ||
423- (defaultType->isDouble () && paramTy->isCGFloatType ()))
423+ (defaultType->isDouble () && paramTy->isCGFloat ()))
424424 return true ;
425425 }
426426 }
@@ -560,7 +560,7 @@ namespace {
560560 // in order to preserve current behavior, let's not favor overloads
561561 // which would result in conversion from CGFloat to Double; otherwise
562562 // it would lead to ambiguities.
563- if (argTy->isCGFloatType () && paramTy->isDouble ())
563+ if (argTy->isCGFloat () && paramTy->isDouble ())
564564 return false ;
565565
566566 return isFavoredParamAndArg (CS, paramTy, argTy) &&
@@ -719,10 +719,10 @@ namespace {
719719 // Avoid favoring overloads that would require narrowing conversion
720720 // to match the arguments.
721721 {
722- if (firstArgTy->isDouble () && firstParamTy->isCGFloatType ())
722+ if (firstArgTy->isDouble () && firstParamTy->isCGFloat ())
723723 return false ;
724724
725- if (secondArgTy->isDouble () && secondParamTy->isCGFloatType ())
725+ if (secondArgTy->isDouble () && secondParamTy->isCGFloat ())
726726 return false ;
727727 }
728728
0 commit comments