The contents of the SymTabValue class have been incorporated into the
[oota-llvm.git] / lib / VMCore / iSwitch.cpp
index e5e3c50cfd5efa0c3916cc29f9f7d4151cc0ec36..cd3079afa7e7ae40c30f75568fd0fce71b6291d0 100644 (file)
@@ -27,7 +27,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));
 }