X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FiSwitch.cpp;h=402610cded252bfe742dc3a825a7f77fe8cc5871;hb=227b86c5fbf8b6d92b2ccc457264c978f67a61ce;hp=e5e3c50cfd5efa0c3916cc29f9f7d4151cc0ec36;hpb=c8b25d40cbec063b1ca99cc1adf794399c6d05c0;p=oota-llvm.git diff --git a/lib/VMCore/iSwitch.cpp b/lib/VMCore/iSwitch.cpp index e5e3c50cfd5..402610cded2 100644 --- a/lib/VMCore/iSwitch.cpp +++ b/lib/VMCore/iSwitch.cpp @@ -6,9 +6,6 @@ #include "llvm/iTerminators.h" #include "llvm/BasicBlock.h" -#ifndef NDEBUG -#include "llvm/Type.h" -#endif SwitchInst::SwitchInst(Value *V, BasicBlock *DefDest) : TerminatorInst(Instruction::Switch) { @@ -27,7 +24,7 @@ SwitchInst::SwitchInst(const SwitchInst &SI) } } -void SwitchInst::dest_push_back(ConstPoolVal *OnVal, BasicBlock *Dest) { - Operands.push_back(Use(OnVal, this)); - Operands.push_back(Use(Dest, this)); +void SwitchInst::dest_push_back(Constant *OnVal, BasicBlock *Dest) { + Operands.push_back(Use((Value*)OnVal, this)); + Operands.push_back(Use((Value*)Dest, this)); }