Use CmpInst::Predicate instead of 'unsigned short' in some places. NFC
[oota-llvm.git] / tools / llvm-stress / llvm-stress.cpp
index 86ac269bb0a212868387a96137ab541020a9ea3c..99d2afdcd3012515a37e6b34c49a70bee7b1f728 100644 (file)
@@ -612,7 +612,8 @@ struct CmpModifier: public Modifier {
     }
 
     Value *V = CmpInst::Create(fp ? Instruction::FCmp : Instruction::ICmp,
-                               op, Val0, Val1, "Cmp", BB->getTerminator());
+                               (CmpInst::Predicate)op, Val0, Val1, "Cmp",
+                               BB->getTerminator());
     return PT->push_back(V);
   }
 };