Skip to content

Commit a6d011a

Browse files
committed
adapt to change in Session API
1 parent ce8503d commit a6d011a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/mir/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl FunctionCx<'a, 'll, 'tcx> {
466466
if (intrinsic == Some("init") || intrinsic == Some("uninit")) &&
467467
bx.cx.layout_of(sig.output()).abi.is_uninhabited()
468468
{
469-
let loc = bx.sess().codemap().lookup_char_pos(span.lo());
469+
let loc = bx.sess().source_map().lookup_char_pos(span.lo());
470470
let filename = Symbol::intern(&loc.file.name.to_string()).as_str();
471471
let filename = C_str_slice(bx.cx, filename);
472472
let line = C_u32(bx.cx, loc.line as u32);

0 commit comments

Comments
 (0)