diff options
-rw-r--r-- | include/llvm/Instructions.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 62e6022ce1..58cc1ee4f1 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -982,6 +982,8 @@ public: // inline const Value *getCondition() const { return Operands[0]; } inline Value *getCondition() { return Operands[0]; } + void setCondition(Value *V) { Operands[0] = V; } + inline const BasicBlock *getDefaultDest() const { return cast<BasicBlock>(Operands[1].get()); } |