Skip to content

Commit 54920ff

Browse files
committed
Add missing clif ir comment
1 parent 01ffb98 commit 54920ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/abi/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
9494
let sig = Signature { params, returns, call_conv: self.target_config.default_call_conv };
9595
let func_id = self.module.declare_function(name, Linkage::Import, &sig).unwrap();
9696
let func_ref = self.module.declare_func_in_func(func_id, &mut self.bcx.func);
97+
if self.clif_comments.enabled() {
98+
self.add_comment(func_ref, format!("{:?}", name));
99+
}
97100
let call_inst = self.bcx.ins().call(func_ref, args);
98101
if self.clif_comments.enabled() {
99102
self.add_comment(call_inst, format!("easy_call {}", name));

0 commit comments

Comments
 (0)