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

Chiang, Yi-Yo via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 28 22:00:51 PDT 2016


yo created this revision.
yo added a subscriber: llvm-commits.

There seems to be some misplaced comments in IndirectBrInst's class definition.
The comments are actually SwitchInst's. This patch fixes the comments.

https://reviews.llvm.org/D23982

Files:
  include/llvm/IR/Instructions.h

Index: include/llvm/IR/Instructions.h
===================================================================
--- include/llvm/IR/Instructions.h
+++ 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.69530.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160829/a1ffa306/attachment.bin>


More information about the llvm-commits mailing list