Provide a way to change the incoming value for a phi node
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 22:19:55 +0000 (22:19 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 22:19:55 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@495 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/iOther.h

index f2c542e0a887bc9dcd9aa83e7e9412680b8a55f1..97f326258101744252a2d9054315603fcd23bd5d 100644 (file)
@@ -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 {