From c21708a4eac0e7f4dda1f18e9653e2823f1d7c67 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Sep 2001 22:19:55 +0000 Subject: [PATCH] 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 --- include/llvm/iOther.h | 3 +++ 1 file changed, 3 insertions(+) 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 {