File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -429,6 +429,8 @@ pub mod write {
429
429
}
430
430
}
431
431
432
+ let llvm_args_len = llvm_args. len ( ) ;
433
+ let llvm_args_ptr = llvm_args. as_ptr ( ) ;
432
434
INIT . doit ( || {
433
435
llvm:: LLVMInitializePasses ( ) ;
434
436
@@ -454,8 +456,8 @@ pub mod write {
454
456
llvm:: LLVMInitializeMipsAsmPrinter ( ) ;
455
457
llvm:: LLVMInitializeMipsAsmParser ( ) ;
456
458
457
- llvm:: LLVMRustSetLLVMOptions ( llvm_args . len ( ) as c_int ,
458
- llvm_args . as_ptr ( ) ) ;
459
+ llvm:: LLVMRustSetLLVMOptions ( llvm_args_len as c_int ,
460
+ llvm_args_ptr ) ;
459
461
} ) ;
460
462
}
461
463
Original file line number Diff line number Diff line change @@ -1880,15 +1880,17 @@ impl<'a> Resolver<'a> {
1880
1880
Some ( def_id) => def_id,
1881
1881
} ;
1882
1882
1883
+ let new_module = module. clone ( ) ;
1883
1884
csearch:: each_child_of_item ( & self . session . cstore ,
1884
1885
def_id,
1885
1886
|def_like, child_ident, visibility| {
1886
1887
debug ! ( "(populating external module) ... found ident: {}" ,
1887
1888
token:: get_ident( child_ident) ) ;
1888
- self . build_reduced_graph_for_external_crate_def ( module. clone ( ) ,
1889
- def_like,
1890
- child_ident,
1891
- visibility)
1889
+ self . build_reduced_graph_for_external_crate_def (
1890
+ new_module. clone ( ) ,
1891
+ def_like,
1892
+ child_ident,
1893
+ visibility)
1892
1894
} ) ;
1893
1895
module. populated . set ( true )
1894
1896
}
You can’t perform that action at this time.
0 commit comments