================
@@ -409,8 +467,10 @@ Constant *Constant::getZeroValue(Type *Ty) {
case Type::PPC_FP128TyID:
return ConstantFP::get(Ty->getContext(),
APFloat::getZero(Ty->getFltSemantics()));
- case Type::PointerTyID:
- return ConstantPointerNull::get(cast<PointerType>(Ty));
+ case Type::PointerTyID: {
+ auto *Zero = ConstantInt::get(Type::getInt8Ty(Ty->getContext()), 0);
----------------
arsenm wrote:
ConstantInt::getZero
https://github.com/llvm/llvm-project/pull/183215
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits