| 2546 | } |
| 2547 | |
| 2548 | static StateValue |
| 2549 | check_return_value(State &s, StateValue &&val, const Type &ty, |
| 2550 | const FnAttrs &attrs, |
| 2551 | const vector<pair<Value*, ParamAttrs>> &args) { |
| 2552 | auto [allocsize, np] = attrs.computeAllocSize(s, args); |
| 2553 | s.addUB(std::move(np)); |
| 2554 | return attrs.encode(s, std::move(val), ty, allocsize, get_align_arg(args)); |
| 2555 | } |
| 2556 | |
| 2557 | static StateValue |
| 2558 | pack_return(State &s, Type &ty, StateValue &&val, const FnAttrs &attrs, |
no test coverage detected