projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Write constexpr casts using the cast X to Y notation, not using the implicit
[oota-llvm.git]
/
lib
/
VMCore
/
iSwitch.cpp
diff --git
a/lib/VMCore/iSwitch.cpp
b/lib/VMCore/iSwitch.cpp
index 91edbc0dce298a3f313fdde9805ff07f92dab273..402610cded252bfe742dc3a825a7f77fe8cc5871 100644
(file)
--- a/
lib/VMCore/iSwitch.cpp
+++ b/
lib/VMCore/iSwitch.cpp
@@
-6,9
+6,6
@@
#include "llvm/iTerminators.h"
#include "llvm/BasicBlock.h"
#include "llvm/iTerminators.h"
#include "llvm/BasicBlock.h"
-#ifndef NDEBUG
-#include "llvm/Type.h"
-#endif
SwitchInst::SwitchInst(Value *V, BasicBlock *DefDest)
: TerminatorInst(Instruction::Switch) {
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) {
}
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));
}
}