diff --git a/llvm/include/llvm/IR/NoFolder.h b/llvm/include/llvm/IR/NoFolder.h index 85fd2ab6a605..9073878476b6 100644 --- a/llvm/include/llvm/IR/NoFolder.h +++ b/llvm/include/llvm/IR/NoFolder.h @@ -235,6 +235,11 @@ public: return CastInst::CreatePointerCast(C, DestTy); } + Instruction *CreatePointerBitCastOrAddrSpaceCast( + Constant *C, Type *DestTy) const { + return CastInst::CreatePointerBitCastOrAddrSpaceCast(C, DestTy); + } + Instruction *CreateIntCast(Constant *C, Type *DestTy, bool isSigned) const { return CastInst::CreateIntegerCast(C, DestTy, isSigned);