| 2325 | } |
| 2326 | |
| 2327 | static Value* get_align_arg(const vector<pair<Value*, ParamAttrs>> &args) { |
| 2328 | for (auto &[arg, attrs] : args) { |
| 2329 | if (attrs.has(ParamAttrs::AllocAlign)) |
| 2330 | return arg; |
| 2331 | } |
| 2332 | return nullptr; |
| 2333 | } |
| 2334 | |
| 2335 | Value* FnCall::getAlignArg() const { |
| 2336 | return get_align_arg(args); |
no test coverage detected