summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/iSwitch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/iSwitch.cpp b/llvm/lib/VMCore/iSwitch.cpp
index 91edbc0dce2..cd3079afa7e 100644
--- a/llvm/lib/VMCore/iSwitch.cpp
+++ b/llvm/lib/VMCore/iSwitch.cpp
@@ -28,6 +28,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));
}
OpenPOWER on IntegriCloud