Skip to content

Commit

Permalink
Auto merge of rust-lang#113116 - nnethercote:codegen-opts, r=oli-obk
Browse files Browse the repository at this point in the history
A mish-mash of micro-optimizations

These were aimed at speeding up LLVM codegen, but ended up affecting other places as well.

r? `@bjorn3`
  • Loading branch information
bors committed Jun 30, 2023
2 parents 2cdf8a4 + 9db001d commit b51f778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debuginfo/line_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl DebugContext {

match tcx.sess.source_map().lookup_line(span.lo()) {
Ok(SourceFileAndLine { sf: file, line }) => {
let line_pos = file.line_begin_pos(span.lo());
let line_pos = file.lines(|lines| lines[line]);

(
file,
Expand Down

0 comments on commit b51f778

Please sign in to comment.