]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/mir/block.rs
All CommonMethods now real methods (not static)
[rust.git] / src / librustc_codegen_llvm / mir / block.rs
index 737b25a1231bb853639782672db2a44ecae5e1c3..b9599d505d330949703a83158d1aabd954975fdb 100644 (file)
@@ -324,7 +324,7 @@ fn codegen_terminator(&mut self,
 
             mir::TerminatorKind::Assert { ref cond, expected, ref msg, target, cleanup } => {
                 let cond = self.codegen_operand(&bx, cond).immediate();
-                let mut const_cond = CodegenCx::const_to_opt_u128(cond, false).map(|c| c == 1);
+                let mut const_cond = bx.cx().const_to_opt_u128(cond, false).map(|c| c == 1);
 
                 // This case can currently arise only from functions marked
                 // with #[rustc_inherit_overflow_checks] and inlined from