Skip to content

Commit 89a670c

Browse files
committed
Address review comments
1 parent fa106b4 commit 89a670c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bolt/lib/Passes/PAuthGadgetScanner.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,12 @@ void GadgetReport::generateReport(raw_ostream &OS,
517517
<< " instructions that write to the affected registers after any "
518518
"authentication are:\n";
519519
// Sort by address to ensure output is deterministic.
520-
std::vector<MCInstReference> ORRI = OverwritingInstrs;
521-
llvm::sort(ORRI, [](const MCInstReference &A, const MCInstReference &B) {
520+
std::vector<MCInstReference> OI = OverwritingInstrs;
521+
llvm::sort(OI, [](const MCInstReference &A, const MCInstReference &B) {
522522
return A.getAddress() < B.getAddress();
523523
});
524-
for (unsigned I = 0; I < ORRI.size(); ++I) {
525-
MCInstReference InstRef = ORRI[I];
524+
for (unsigned I = 0; I < OI.size(); ++I) {
525+
MCInstReference InstRef = OI[I];
526526
OS << " " << (I + 1) << ". ";
527527
BC.printInstruction(OS, InstRef, InstRef.getAddress(), BF);
528528
};

0 commit comments

Comments
 (0)