Copy constants from the callee into the caller.
(allocs: &mut InliningAllocs, func: &mut ir::Function, callee: &ir::Function)
| 1625 | |
| 1626 | /// Copy constants from the callee into the caller. |
| 1627 | fn create_constants(allocs: &mut InliningAllocs, func: &mut ir::Function, callee: &ir::Function) { |
| 1628 | for (callee_constant, data) in callee.dfg.constants.iter() { |
| 1629 | let inlined_constant = func.dfg.constants.insert(data.clone()); |
| 1630 | allocs.constants[*callee_constant] = Some(inlined_constant).into(); |
| 1631 | } |
| 1632 | } |
no test coverage detected