Use CmpInst::Predicate instead of 'unsigned short' in some places. NFC
[oota-llvm.git] / lib / IR / Constants.cpp
index 36282c164293f727352df1954ff467524ce1b202..ac80eae8e941464b967ee67fc7ac842dc8b6b87b 100644 (file)
@@ -3021,7 +3021,7 @@ Instruction *ConstantExpr::getAsInstruction() {
   case Instruction::ICmp:
   case Instruction::FCmp:
     return CmpInst::Create((Instruction::OtherOps)getOpcode(),
-                           getPredicate(), Ops[0], Ops[1]);
+                           (CmpInst::Predicate)getPredicate(), Ops[0], Ops[1]);
 
   default:
     assert(getNumOperands() == 2 && "Must be binary operator?");