Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Commit ce99c9d

Browse files
committed
Fix small check in _ObjCSelectorFixer
1 parent 0c93490 commit ce99c9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DyldExtractor/converter/objc_fixer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ def _findAddInstr(
239239
if instruction[2] == "add" and opcodes[1] == adrpDestReg:
240240
return instruction[0] - adrpAddr
241241

242-
# If we find an instruction using the register,
242+
# If we find an instruction modifying the register,
243243
# it probably isn't a selector reference
244-
if adrpDestReg in opcodes:
244+
if adrpDestReg == opcodes[0]:
245245
return None
246246
pass
247247

0 commit comments

Comments
 (0)