[llvm] r280241 - Fix comments about IndirectBrInst in Instructions.h

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 06:39:34 PDT 2016


Author: mcrosier
Date: Wed Aug 31 08:39:34 2016
New Revision: 280241

URL: http://llvm.org/viewvc/llvm-project?rev=280241&view=rev
Log:
Fix comments about IndirectBrInst in Instructions.h

Patch by yo (Chiang, Yi-Yo) <yo at skymizer.com>.
Differential Revision: https://reviews.llvm.org/D23982

Modified:
    llvm/trunk/include/llvm/IR/Instructions.h

Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=280241&r1=280240&r2=280241&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Wed Aug 31 08:39:34 2016
@@ -3270,10 +3270,8 @@ DEFINE_TRANSPARENT_OPERAND_ACCESSORS(Swi
 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();




More information about the llvm-commits mailing list