]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_llvm/src/builder.rs
Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa
[rust.git] / compiler / rustc_codegen_llvm / src / builder.rs
index a94b7985987fafca894ae8f175fd9c48ddfa2f94..0707faf610cf3e4edc312bf9f3b8d0cac413adcf 100644 (file)
@@ -854,6 +854,7 @@ fn icmp(&mut self, op: IntPredicate, lhs: &'ll Value, rhs: &'ll Value) -> &'ll V
     }
 
     fn fcmp(&mut self, op: RealPredicate, lhs: &'ll Value, rhs: &'ll Value) -> &'ll Value {
+        let op = llvm::RealPredicate::from_generic(op);
         unsafe { llvm::LLVMBuildFCmp(self.llbuilder, op as c_uint, lhs, rhs, UNNAMED) }
     }