mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
adapt to change in Session API
This commit is contained in:
committed by
Ralf Jung
parent
cef3aa0261
commit
fba4e291ce
@@ -486,7 +486,7 @@ fn codegen_terminator(&mut self,
|
||||
if (intrinsic == Some("init") || intrinsic == Some("uninit")) &&
|
||||
fn_ty.ret.layout.abi.is_uninhabited()
|
||||
{
|
||||
let loc = bx.sess().codemap().lookup_char_pos(span.lo());
|
||||
let loc = bx.sess().source_map().lookup_char_pos(span.lo());
|
||||
let filename = Symbol::intern(&loc.file.name.to_string()).as_str();
|
||||
let filename = C_str_slice(bx.cx, filename);
|
||||
let line = C_u32(bx.cx, loc.line as u32);
|
||||
|
||||
Reference in New Issue
Block a user