diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-02-12 21:48:34 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-02-12 21:48:34 -0500 |
| commit | bba715aff1565426fba31e2f39c438f37921c303 (patch) | |
| tree | 9f1a0fd2b15d5d8bcc5d02a90449f0a7a3d6abc3 /mediumlevelilinstruction.cpp | |
| parent | 79b5bdcf42f6abf1c8b2c4bda4c30b41319c4aa5 (diff) | |
| parent | c352fec480dde5321a0c52850be1bb8a3df9bbd3 (diff) | |
Merge branch 'dev' into fpu
Diffstat (limited to 'mediumlevelilinstruction.cpp')
| -rw-r--r-- | mediumlevelilinstruction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp index 39ab4f28..586eb470 100644 --- a/mediumlevelilinstruction.cpp +++ b/mediumlevelilinstruction.cpp @@ -231,14 +231,14 @@ unordered_map<BNMediumLevelILOperation, vector<MediumLevelILOperandUsage>> }; -static unordered_map<BNMediumLevelILOperation, unordered_map<MediumLevelILOperandUsage, size_t>> - GetOperandIndexForOperandUsages() +static unordered_map<BNMediumLevelILOperation, unordered_map<MediumLevelILOperandUsage, size_t>> GetOperandIndexForOperandUsages() { unordered_map<BNMediumLevelILOperation, unordered_map<MediumLevelILOperandUsage, size_t>> result; + result.reserve(MediumLevelILInstructionBase::operationOperandUsage.size()); for (auto& operation : MediumLevelILInstructionBase::operationOperandUsage) { result[operation.first] = unordered_map<MediumLevelILOperandUsage, size_t>(); - + result[operation.first].reserve(operation.second.size()); size_t operand = 0; for (auto usage : operation.second) { |
