Add missing accessor.
authorChris Lattner <sabre@nondot.org>
Fri, 10 Dec 2004 20:35:47 +0000 (20:35 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Dec 2004 20:35:47 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18775 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 62e6022ce1a9066377aa2345ed39d412d9e30f42..58cc1ee4f154d1b1533e178cab4752ad59125495 100644 (file)
@@ -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());
   }