]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/mir/rvalue.rs
All CommonMethods now real methods (not static)
[rust.git] / src / librustc_codegen_llvm / mir / rvalue.rs
index 3c469cffaf3cb1103eda7dcf256f3b8918f8f47e..2496e10b74b1bed13bde4531cfd547610579e91c 100644 (file)
@@ -20,7 +20,6 @@
 use builder::Builder;
 use callee;
 use common::{self, IntPredicate, RealPredicate};
-use context::CodegenCx;
 use consts;
 use monomorphize;
 use type_::Type;
@@ -110,7 +109,7 @@ pub fn codegen_rvalue(&mut self,
                     let size = bx.cx().c_usize(dest.layout.size.bytes());
 
                     // Use llvm.memset.p0i8.* to initialize all zero arrays
-                    if CodegenCx::is_const_integral(v) && CodegenCx::const_to_uint(v) == 0 {
+                    if bx.cx().is_const_integral(v) && bx.cx().const_to_uint(v) == 0 {
                         let fill = bx.cx().c_u8(0);
                         base::call_memset(&bx, start, fill, size, align, false);
                         return bx;