[PATCH] D23982: Fix comments about IndirectBrInst in Instructions.h

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rL280241: Fix comments about IndirectBrInst in Instructions.h (authored by mcrosier).

Changed prior to commit:
  https://reviews.llvm.org/D23982?vs=69530&id=69845#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23982

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

Index: llvm/trunk/include/llvm/IR/Instructions.h
===================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h
+++ llvm/trunk/include/llvm/IR/Instructions.h
@@ -3270,10 +3270,8 @@
 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();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23982.69845.patch
Type: text/x-patch
Size: 737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160831/13bdd09a/attachment.bin>


More information about the llvm-commits mailing list