Skip to content

Commit 866c587

Browse files
committed
[NFC][exegesis] SnippetGenerator::generateConfigurations(): don't forget to reserve()
1 parent 4228ab0 commit 866c587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Error SnippetGenerator::generateConfigurations(
7575
{
7676
BenchmarkCode BC;
7777
BC.Info = CT.Info;
78+
BC.Key.Instructions.reserve(CT.Instructions.size());
7879
for (InstructionTemplate &IT : CT.Instructions) {
7980
if (auto error = randomizeUnsetVariables(State, ForbiddenRegs, IT))
8081
return error;

0 commit comments

Comments
 (0)