We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397707f commit 9f264e4Copy full SHA for 9f264e4
bolt/lib/Passes/VeneerElimination.cpp
@@ -73,12 +73,12 @@ Error VeneerElimination::runOnFunctions(BinaryContext &BC) {
73
continue;
74
75
const MCSymbol *TargetSymbol = BC.MIB->getTargetSymbol(Instr, 0);
76
- if (VeneerDestinations.find(TargetSymbol) == VeneerDestinations.end())
+ auto It = VeneerDestinations.find(TargetSymbol);
77
+ if (It == VeneerDestinations.end())
78
79
80
VeneerCallers++;
- BC.MIB->replaceBranchTarget(Instr, VeneerDestinations[TargetSymbol],
81
- BC.Ctx.get());
+ BC.MIB->replaceBranchTarget(Instr, It->second, BC.Ctx.get());
82
}
83
84
0 commit comments