================ @@ -1401,14 +1401,18 @@ void Intrinsic::emitBodyAsBuiltinCall() { if (LocalCK == ClassB || (T.isHalf() && !T.isScalarForMangling())) { CastToType.makeInteger(8, true); Arg = "__builtin_bit_cast(" + CastToType.str() + ", " + Arg + ")"; - } else if (LocalCK == ClassI) { - if (CastToType.isInteger()) { ---------------- Lukacma wrote:
Is it not enough to amend the check here to this ? `` if (CastToType.isInteger() && CastToType.isPoly())`` https://github.com/llvm/llvm-project/pull/149329 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits