diff options
author | Chris Lattner <sabre@nondot.org> | 2001-09-07 22:19:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-09-07 22:19:55 +0000 |
commit | c21708a4eac0e7f4dda1f18e9653e2823f1d7c67 (patch) | |
tree | e1f552633facb8e221a5ec65735a002dc16a7663 /include/llvm/iOther.h | |
parent | 5341e214d993c75e5e4b34b0c848ce008ae68340 (diff) | |
download | external_llvm-c21708a4eac0e7f4dda1f18e9653e2823f1d7c67.zip external_llvm-c21708a4eac0e7f4dda1f18e9653e2823f1d7c67.tar.gz external_llvm-c21708a4eac0e7f4dda1f18e9653e2823f1d7c67.tar.bz2 |
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
Diffstat (limited to 'include/llvm/iOther.h')
-rw-r--r-- | include/llvm/iOther.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h index f2c542e..97f3262 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 { |