aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-07 22:19:55 +0000
committerChris Lattner <sabre@nondot.org>2001-09-07 22:19:55 +0000
commitc21708a4eac0e7f4dda1f18e9653e2823f1d7c67 (patch)
treee1f552633facb8e221a5ec65735a002dc16a7663
parent5341e214d993c75e5e4b34b0c848ce008ae68340 (diff)
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
-rw-r--r--include/llvm/iOther.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h
index f2c542e0a8..97f3262581 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 {