From: Chris Lattner Date: Fri, 7 Sep 2001 22:19:55 +0000 (+0000) Subject: Provide a way to change the incoming value for a phi node X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c21708a4eac0e7f4dda1f18e9653e2823f1d7c67;p=oota-llvm.git Provide a way to change the incoming value for a phi node git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@495 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h index f2c542e0a88..97f32625810 100644 --- a/include/llvm/iOther.h +++ b/include/llvm/iOther.h @@ -38,6 +38,9 @@ public: inline Value *getIncomingValue(unsigned i) { return Operands[i*2]; } + inline void setIncomingValue(unsigned i, Value *V) { + Operands[i*2] = V; + } // getIncomingBlock - Return incoming basic block #x inline const BasicBlock *getIncomingBlock(unsigned i) const {