summaryrefslogtreecommitdiff
path: root/mediumlevelilinstruction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mediumlevelilinstruction.cpp')
-rw-r--r--mediumlevelilinstruction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp
index 00189313..1097dda9 100644
--- a/mediumlevelilinstruction.cpp
+++ b/mediumlevelilinstruction.cpp
@@ -1014,6 +1014,7 @@ void MediumLevelILInstructionBase::UpdateRawOperandAsExprList(
size_t operandIndex, const vector<MediumLevelILInstruction>& exprs)
{
vector<ExprId> exprIndexList;
+ exprIndexList.reserve(exprs.size());
for (auto& i : exprs)
exprIndexList.push_back((ExprId)i.exprIndex);
UpdateRawOperand(operandIndex, exprIndexList.size());