add missing method, PR6284
[oota-llvm.git] / include / llvm / Support / TargetFolder.h
index 384c49396a865524e7f8aece051cb7916c812030..d34f35fe0d2be8cf37765a6b4297199b414de251 100644 (file)
@@ -185,7 +185,9 @@ public:
       return C; // avoid calling Fold
     return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned));
   }
-
+  Constant *CreatePointerCast(Constant *C, const Type *DestTy) const {
+    return ConstantExpr::getPointerCast(C, DestTy);
+  }
   Constant *CreateBitCast(Constant *C, const Type *DestTy) const {
     return CreateCast(Instruction::BitCast, C, DestTy);
   }