mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
adapt to change in Session API
This commit is contained in:
parent
cef3aa0261
commit
fba4e291ce
@ -486,7 +486,7 @@ impl FunctionCx<'a, 'll, 'tcx> {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user