1
Fork 0

Removed useless traits for IntPredicate and RealPredicate

This commit is contained in:
Denis Merigoux 2018-08-21 16:31:36 +02:00 committed by Eduard-Mihai Burtescu
parent 8590336d49
commit bc86624c43
3 changed files with 5 additions and 14 deletions

View file

@ -691,7 +691,7 @@ impl BuilderMethods<'a, 'll, 'tcx, Value, BasicBlock>
/* Comparisons */
fn icmp(&self, op: traits::IntPredicate, lhs: &'ll Value, rhs: &'ll Value) -> &'ll Value {
self.count_insn("icmp");
let op : llvm::IntPredicate = traits::IntPredicateMethods::convert_to_backend_specific(op);
let op = llvm::IntPredicate::from_generic(op);
unsafe {
llvm::LLVMBuildICmp(self.llbuilder, op as c_uint, lhs, rhs, noname())
}