We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989bb25 commit 9360f7cCopy full SHA for 9360f7c
1 file changed
src/base.rs
@@ -63,7 +63,9 @@ pub(crate) fn codegen_fn<'tcx>(
63
func.clear();
64
func.name = UserFuncName::user(0, func_id.as_u32());
65
func.signature = sig;
66
- func.collect_debug_info();
+ if cx.debug_context.is_some() {
67
+ func.collect_debug_info();
68
+ }
69
70
let mut bcx = FunctionBuilder::new(&mut func, &mut func_ctx);
71
0 commit comments