diff options
| author | bors <bors@rust-lang.org> | 2023-06-30 00:35:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-30 00:35:19 +0000 |
| commit | 8aed93d912ec23819c08e9a89ca1fb461b3cd2e6 (patch) | |
| tree | cf08613768e315951133c7494e2487cebd22c598 /compiler/rustc_codegen_cranelift | |
| parent | 330727467b8fdf2c43b95095a0efae7012c4f83b (diff) | |
| parent | 7e786e81b00cf48a664084d30d4f82f408825397 (diff) | |
| download | rust-8aed93d912ec23819c08e9a89ca1fb461b3cd2e6.tar.gz rust-8aed93d912ec23819c08e9a89ca1fb461b3cd2e6.zip | |
Auto merge of #113116 - nnethercote:codegen-opts, r=oli-obk
A mish-mash of micro-optimizations These were aimed at speeding up LLVM codegen, but ended up affecting other places as well. r? `@bjorn3`
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs index 463de6a91c7..1b454b6667c 100644 --- a/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs +++ b/compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs @@ -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, |
