about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/base.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/base.rs b/src/base.rs
index e59998e4dfa..c9626a16be4 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -393,12 +393,18 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, '_>) {
                 func,
                 args,
                 destination,
-                fn_span: _,
+                fn_span,
                 cleanup: _,
                 from_hir_call: _,
             } => {
                 fx.tcx.sess.time("codegen call", || {
-                    crate::abi::codegen_terminator_call(fx, source_info, func, args, *destination)
+                    crate::abi::codegen_terminator_call(
+                        fx,
+                        mir::SourceInfo { span: *fn_span, ..source_info },
+                        func,
+                        args,
+                        *destination,
+                    )
                 });
             }
             TerminatorKind::InlineAsm {