diff options
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/InstrTypes.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/VMCore/iOperators.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/InstrTypes.cpp b/llvm/lib/VMCore/InstrTypes.cpp index cda99a9446a..9d3262cbda7 100644 --- a/llvm/lib/VMCore/InstrTypes.cpp +++ b/llvm/lib/VMCore/InstrTypes.cpp @@ -12,7 +12,7 @@ #include <algorithm> // find // TODO: Move to getUnaryOperator iUnary.cpp when and if it exists! -UnaryOperator *UnaryOperator::create(unsigned Op, Value *Source) { +UnaryOperator *UnaryOperator::create(UnaryOps Op, Value *Source) { switch (Op) { default: cerr << "Don't know how to GetUnaryOperator " << Op << endl; diff --git a/llvm/lib/VMCore/iOperators.cpp b/llvm/lib/VMCore/iOperators.cpp index ef6933adb25..61d5d26d2b4 100644 --- a/llvm/lib/VMCore/iOperators.cpp +++ b/llvm/lib/VMCore/iOperators.cpp @@ -7,13 +7,13 @@ #include "llvm/iBinary.h" #include "llvm/Type.h" -BinaryOperator *BinaryOperator::create(unsigned Op, Value *S1, Value *S2, +BinaryOperator *BinaryOperator::create(BinaryOps Op, Value *S1, Value *S2, const string &Name) { switch (Op) { // Binary comparison operators... case SetLT: case SetGT: case SetLE: case SetGE: case SetEQ: case SetNE: - return new SetCondInst((BinaryOps)Op, S1, S2, Name); + return new SetCondInst(Op, S1, S2, Name); default: return new GenericBinaryInst(Op, S1, S2, Name); |

