aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/iOperators.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-07 20:17:23 +0000
committerChris Lattner <sabre@nondot.org>2001-07-07 20:17:23 +0000
commit9f3d27654a9c60104c93cacc869709d5d30e5367 (patch)
treec5ab02c551a01ea9c993456aa1229bfb9a06a7f4 /lib/VMCore/iOperators.cpp
parenta41f50dea8573e4a610b5aa5e45b5c368559b084 (diff)
downloadexternal_llvm-9f3d27654a9c60104c93cacc869709d5d30e5367.tar.gz
external_llvm-9f3d27654a9c60104c93cacc869709d5d30e5367.tar.bz2
external_llvm-9f3d27654a9c60104c93cacc869709d5d30e5367.zip
Convert BinaryOperand and UnaryOperator to only take instruction types of
the appropriate enum git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iOperators.cpp')
-rw-r--r--lib/VMCore/iOperators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/iOperators.cpp b/lib/VMCore/iOperators.cpp
index ef6933adb2..61d5d26d2b 100644
--- a/lib/VMCore/iOperators.cpp
+++ b/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);