From: Chris Lattner Date: Fri, 10 Dec 2004 20:35:47 +0000 (+0000) Subject: Add missing accessor. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bfaf88a4d3dcd8ff82a8f0b7379466c4b0270043;p=oota-llvm.git Add missing accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18775 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 62e6022ce1a..58cc1ee4f15 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(Operands[1].get()); }