Skip to content

Commit fba4e29

Browse files
japaricRalfJung
authored andcommitted
adapt to change in Session API
1 parent cef3aa0 commit fba4e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/mir/block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ impl FunctionCx<'a, 'll, 'tcx> {
486486
if (intrinsic == Some("init") || intrinsic == Some("uninit")) &&
487487
fn_ty.ret.layout.abi.is_uninhabited()
488488
{
489-
let loc = bx.sess().codemap().lookup_char_pos(span.lo());
489+
let loc = bx.sess().source_map().lookup_char_pos(span.lo());
490490
let filename = Symbol::intern(&loc.file.name.to_string()).as_str();
491491
let filename = C_str_slice(bx.cx, filename);
492492
let line = C_u32(bx.cx, loc.line as u32);

0 commit comments

Comments
 (0)