]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/context.rs
Rollup merge of #69625 - Stebalien:feat/iter-copy-specialize, r=KodrAus
[rust.git] / src / librustc_codegen_llvm / context.rs
index 46f461b98c8de0ee7207a78769002305c64978da..3466363ac797227b4febe21cf5099e958e5718d9 100644 (file)
@@ -174,7 +174,6 @@ pub unsafe fn create_module(
 
         let llvm_data_layout = llvm::LLVMGetDataLayout(llmod);
         let llvm_data_layout = str::from_utf8(CStr::from_ptr(llvm_data_layout).to_bytes())
-            .ok()
             .expect("got a non-UTF8 data-layout from LLVM");
 
         // Unfortunately LLVM target specs change over time, and right now we