Removed useless traits for IntPredicate and RealPredicate
This commit is contained in:
parent
8590336d49
commit
bc86624c43
3 changed files with 5 additions and 14 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue