[IRBuilder] Add missing NoFolder::CreatePointerBitCastOrAddrSpaceCast(); NFC
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 3 Feb 2020 18:10:20 +0000 (19:10 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 3 Feb 2020 18:11:27 +0000 (19:11 +0100)
Split out from D73835. This method was added to ConstantFolder and
TargetFolder, but not NoFolder.

llvm/include/llvm/IR/NoFolder.h

index 85fd2ab..9073878 100644 (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);