================ @@ -5254,7 +5250,11 @@ bool CheckAllArgsHaveFloatRepresentation(Sema *S, CallExpr *TheCall) { QualType ExpectedType = S->Context.FloatTy; for (unsigned i = 0; i < TheCall->getNumArgs(); ++i) { QualType PassedType = TheCall->getArg(i)->getType(); - if (!PassedType->hasFloatingRepresentation()) { + ExpectedType = PassedType->isHalfType() && S->getLangOpts().NativeHalfType + ? S->Context.HalfTy + : S->Context.FloatTy; + if (PassedType == S->Context.DoubleTy || + !PassedType->hasFloatingRepresentation()) { ---------------- farzonl wrote:
I have a solution I think will make things more clear. https://github.com/llvm/llvm-project/pull/84526 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits