[IRBuilder] Add missing NoFolder::CreatePointerBitCastOrAddrSpaceCast(); NFC

Split out from D73835. This method was added to ConstantFolder and
TargetFolder, but not NoFolder.
This commit is contained in:
Nikita Popov 2020-02-03 19:10:20 +01:00
parent dbc96b518b
commit 23e3c3df26
1 changed files with 5 additions and 0 deletions

View File

@ -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);