diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-17 05:41:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-17 05:41:46 +0000 |
commit | aa6e350c88b10d3cece4296be45ed6b458dcf05a (patch) | |
tree | 9be364b41d66c6e48f58defe7df524c76ce824e8 /include/llvm/Instructions.h | |
parent | b75c651e22a63907b727664f044283bf9c9fb885 (diff) | |
download | llvm-aa6e350c88b10d3cece4296be45ed6b458dcf05a.tar.gz llvm-aa6e350c88b10d3cece4296be45ed6b458dcf05a.tar.bz2 llvm-aa6e350c88b10d3cece4296be45ed6b458dcf05a.tar.xz |
fix PR8613 - Copy constructor of SwitchInst does not call SwitchInst::init
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 68fc6057c6..c681b7f406 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -2161,7 +2161,7 @@ class SwitchInst : public TerminatorInst { // Operand[2n ] = Value to match // Operand[2n+1] = BasicBlock to go to on match SwitchInst(const SwitchInst &SI); - void init(Value *Value, BasicBlock *Default, unsigned NumCases); + void init(Value *Value, BasicBlock *Default, unsigned NumReserved); void resizeOperands(unsigned No); // allocate space for exactly zero operands void *operator new(size_t s) { |