File tree 1 file changed +4
-4
lines changed
src/librustc_trans/debuginfo
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -787,20 +787,20 @@ pub fn compile_unit_metadata(scc: &SharedCrateContext,
787
787
( option_env!( "CFG_VERSION" ) ) . expect( "CFG_VERSION" ) ) ;
788
788
789
789
let compile_unit_name = compile_unit_name. as_ptr ( ) ;
790
- let work_dir = path2cstr ( & work_dir) . as_ptr ( ) ;
791
- let producer = CString :: new ( producer) . unwrap ( ) . as_ptr ( ) ;
790
+ let work_dir = path2cstr ( & work_dir) ;
791
+ let producer = CString :: new ( producer) . unwrap ( ) ;
792
792
let flags = "\0 " ;
793
793
let split_name = "\0 " ;
794
794
795
795
unsafe {
796
796
let file_metadata = llvm:: LLVMRustDIBuilderCreateFile (
797
- debug_context. builder , compile_unit_name, work_dir) ;
797
+ debug_context. builder , compile_unit_name, work_dir. as_ptr ( ) ) ;
798
798
799
799
return llvm:: LLVMRustDIBuilderCreateCompileUnit (
800
800
debug_context. builder ,
801
801
DW_LANG_RUST ,
802
802
file_metadata,
803
- producer,
803
+ producer. as_ptr ( ) ,
804
804
sess. opts . optimize != config:: OptLevel :: No ,
805
805
flags. as_ptr ( ) as * const _ ,
806
806
0 ,
You can’t perform that action at this time.
0 commit comments