about summary refs log tree commit diff
path: root/src/comp/metadata
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/metadata')
-rw-r--r--src/comp/metadata/creader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs
index 2536e2efcb5..21ead604d31 100644
--- a/src/comp/metadata/creader.rs
+++ b/src/comp/metadata/creader.rs
@@ -216,7 +216,7 @@ fn get_metadata_section(sess: session::session,
     let si = mk_section_iter(of.llof);
     while llvm::LLVMIsSectionIteratorAtEnd(of.llof, si.llsi) == False {
         let name_buf = llvm::LLVMGetSectionName(si.llsi);
-        let name = unsafe { str::str_from_cstr(name_buf) };
+        let name = unsafe { str::from_cstr(name_buf) };
         if str::eq(name, sess.get_targ_cfg().target_strs.meta_sect_name) {
             let cbuf = llvm::LLVMGetSectionContents(si.llsi);
             let csz = llvm::LLVMGetSectionSize(si.llsi);