diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-10 20:35:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-10 20:35:47 +0000 |
commit | bfaf88a4d3dcd8ff82a8f0b7379466c4b0270043 (patch) | |
tree | 2cf94ada364ece431a158361d33905518f0d2126 | |
parent | 152f19ac6514ec29e183ddcdf2ea71599638dc4c (diff) |
Add missing accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18775 91177308-0d34-0410-b5e6-96231b3b80d8
-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()); } |