Skip to content

Commit 751d31c

Browse files
committed
[BOLT] Fix: skip unneeded iterations
1 parent b14f217 commit 751d31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Passes/InsertNegateRAStatePass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void InsertNegateRAState::fillUnknownStateInBB(BinaryContext &BC,
152152
// At this point we know the RAState of the first instruction,
153153
// so we can propagate the RAStates to all subsequent unknown instructions.
154154
MCInst Prev = *First;
155-
for (auto It = BB.begin() + 1; It != BB.end(); ++It) {
155+
for (auto It = First + 1; It != BB.end(); ++It) {
156156
MCInst &Inst = *It;
157157
if (BC.MIB->isCFI(Inst))
158158
continue;

0 commit comments

Comments
 (0)