forked from OSchip/llvm-project
[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:
parent
dbc96b518b
commit
23e3c3df26
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue