File tree Expand file tree Collapse file tree 3 files changed +429
-14
lines changed Expand file tree Collapse file tree 3 files changed +429
-14
lines changed Original file line number Diff line number Diff line change @@ -3497,15 +3497,17 @@ void MachORebaseEntry::moveNext() {
3497
3497
--RemainingLoopCount;
3498
3498
return ;
3499
3499
}
3500
- // REBASE_OPCODE_DONE is only used for padding if we are not aligned to
3501
- // pointer size. Therefore it is possible to reach the end without ever having
3502
- // seen REBASE_OPCODE_DONE.
3503
- if (Ptr == Opcodes.end ()) {
3504
- Done = true ;
3505
- return ;
3506
- }
3500
+
3507
3501
bool More = true ;
3508
3502
while (More) {
3503
+ // REBASE_OPCODE_DONE is only used for padding if we are not aligned to
3504
+ // pointer size. Therefore it is possible to reach the end without ever
3505
+ // having seen REBASE_OPCODE_DONE.
3506
+ if (Ptr == Opcodes.end ()) {
3507
+ Done = true ;
3508
+ return ;
3509
+ }
3510
+
3509
3511
// Parse next opcode and set up next loop.
3510
3512
const uint8_t *OpcodeStart = Ptr;
3511
3513
uint8_t Byte = *Ptr++;
@@ -3834,15 +3836,17 @@ void MachOBindEntry::moveNext() {
3834
3836
--RemainingLoopCount;
3835
3837
return ;
3836
3838
}
3837
- // BIND_OPCODE_DONE is only used for padding if we are not aligned to
3838
- // pointer size. Therefore it is possible to reach the end without ever having
3839
- // seen BIND_OPCODE_DONE.
3840
- if (Ptr == Opcodes.end ()) {
3841
- Done = true ;
3842
- return ;
3843
- }
3839
+
3844
3840
bool More = true ;
3845
3841
while (More) {
3842
+ // BIND_OPCODE_DONE is only used for padding if we are not aligned to
3843
+ // pointer size. Therefore it is possible to reach the end without ever
3844
+ // having seen BIND_OPCODE_DONE.
3845
+ if (Ptr == Opcodes.end ()) {
3846
+ Done = true ;
3847
+ return ;
3848
+ }
3849
+
3846
3850
// Parse next opcode and set up next loop.
3847
3851
const uint8_t *OpcodeStart = Ptr;
3848
3852
uint8_t Byte = *Ptr++;
You can’t perform that action at this time.
0 commit comments