From 1b314fceb26919511f4914472400e291263baa67 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 31 Aug 2016 13:39:34 +0000 Subject: [PATCH] Fix comments about IndirectBrInst in Instructions.h Patch by yo (Chiang, Yi-Yo) . Differential Revision: https://reviews.llvm.org/D23982 llvm-svn: 280241 --- llvm/include/llvm/IR/Instructions.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h index d842654..49b7d47 100644 --- a/llvm/include/llvm/IR/Instructions.h +++ b/llvm/include/llvm/IR/Instructions.h @@ -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(); -- 2.7.4