Returns true if the signature needs to be legalized.
(sig: &ir::Signature)
| 1456 | |
| 1457 | /// Returns true if the signature needs to be legalized. |
| 1458 | fn missing_struct_return(sig: &ir::Signature) -> bool { |
| 1459 | sig.uses_special_param(ArgumentPurpose::StructReturn) |
| 1460 | && !sig.uses_special_return(ArgumentPurpose::StructReturn) |
| 1461 | } |
| 1462 | |
| 1463 | fn ensure_struct_return_ptr_is_returned(sig: &ir::Signature) -> ir::Signature { |
| 1464 | // Keep in sync with Callee::new |
nothing calls this directly
no test coverage detected