From: Chris Lattner Date: Wed, 17 Feb 2010 18:39:56 +0000 (+0000) Subject: add missing method, PR6284 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=46d1ddd13c1529fd669c7c66fa8bea54f26188ba;p=oota-llvm.git add missing method, PR6284 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96489 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/TargetFolder.h b/include/llvm/Support/TargetFolder.h index 384c49396a8..d34f35fe0d2 100644 --- a/include/llvm/Support/TargetFolder.h +++ b/include/llvm/Support/TargetFolder.h @@ -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); }