From baf00a54e8bc0a6fb9bfb6cfa6798911327de8a4 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Mon, 9 Jun 2025 17:21:48 -0700 Subject: [PATCH] Fix clang-tidy performance-inefficient-vector-operation warnings in headers --- src/script_opt/ZAM/OPs/calls.op | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script_opt/ZAM/OPs/calls.op b/src/script_opt/ZAM/OPs/calls.op index 5fcbdda607..b78b7f2a9d 100644 --- a/src/script_opt/ZAM/OPs/calls.op +++ b/src/script_opt/ZAM/OPs/calls.op @@ -144,6 +144,7 @@ macro WhenCall(lhs, func) auto current_assoc = Z_FRAME->GetTriggerAssoc(); auto n = aux->n; std::vector args; + args.reserve(n); for ( auto i = 0; i < n; ++i ) args.push_back(aux->ToVal(frame, i)); Z_FRAME->SetCall(Z_AUX->call_expr.get());