Write constexpr casts using the cast X to Y notation, not using the implicit
[oota-llvm.git] / lib / VMCore / iSwitch.cpp
index 91edbc0dce298a3f313fdde9805ff07f92dab273..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) {
@@ -28,6 +25,6 @@ SwitchInst::SwitchInst(const SwitchInst &SI)
 }
 
 void SwitchInst::dest_push_back(Constant *OnVal, BasicBlock *Dest) {
-  Operands.push_back(Use(OnVal, this));
-  Operands.push_back(Use(Dest, this));
+  Operands.push_back(Use((Value*)OnVal, this));
+  Operands.push_back(Use((Value*)Dest, this));
 }