- Renamed Type::isIntegral() to Type::isInteger()
[oota-llvm.git] / lib / VMCore / iSwitch.cpp
index e5e3c50cfd5efa0c3916cc29f9f7d4151cc0ec36..402610cded252bfe742dc3a825a7f77fe8cc5871 100644 (file)
@@ -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));
 }