]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/base.rs
All CommonMethods now real methods (not static)
[rust.git] / src / librustc_codegen_llvm / base.rs
index 6a2f437b1da4847007bc9f6929c17cf22cd74ec1..e13c488d2b74bb044272d5d4b23f64ad794e89f6 100644 (file)
@@ -1151,7 +1151,7 @@ fn module_codegen<'a, 'tcx>(
             if !cx.used_statics.borrow().is_empty() {
                 let name = const_cstr!("llvm.used");
                 let section = const_cstr!("llvm.metadata");
-                let array = CodegenCx::c_array(Type::i8(&cx).ptr_to(), &*cx.used_statics.borrow());
+                let array = cx.c_array(Type::i8(&cx).ptr_to(), &*cx.used_statics.borrow());
 
                 unsafe {
                     let g = llvm::LLVMAddGlobal(cx.llmod,