Fix comments about IndirectBrInst in Instructions.h
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 31 Aug 2016 13:39:34 +0000 (13:39 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 31 Aug 2016 13:39:34 +0000 (13:39 +0000)
Patch by yo (Chiang, Yi-Yo) <yo@skymizer.com>.
Differential Revision: https://reviews.llvm.org/D23982

llvm-svn: 280241

llvm/include/llvm/IR/Instructions.h

index d842654..49b7d47 100644 (file)
@@ -3270,10 +3270,8 @@ DEFINE_TRANSPARENT_OPERAND_ACCESSORS(SwitchInst, Value)
 class IndirectBrInst : public TerminatorInst {
   void *operator new(size_t, unsigned) = delete;
   unsigned ReservedSpace;
-  // Operand[0]    = Value to switch on
-  // Operand[1]    = Default basic block destination
-  // Operand[2n  ] = Value to match
-  // Operand[2n+1] = BasicBlock to go to on match
+  // Operand[0]   = Address to jump to
+  // Operand[n+1] = n-th destination
   IndirectBrInst(const IndirectBrInst &IBI);
   void init(Value *Address, unsigned NumDests);
   void growOperands();