================
@@ -5908,7 +5908,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl 
GD, unsigned BuiltinID,
           }
         }
 
-        assert(PTy->canLosslesslyBitCastTo(FTy->getParamType(i)) &&
+        assert(ArgValue->getType()->canLosslesslyBitCastTo(PTy) &&
----------------
arsenm wrote:

Is there much point to this assertion, given that the BitCast constructor will 
also assert castIsValid? canLosslesslyBitCastTo looks arbitrarily different 
from castIsValid 

https://github.com/llvm/llvm-project/pull/81083
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to