Skip to content

Commit

Permalink
DECLHAX: Work around _NSConcreteGlobalBlock's linkage on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Feb 16, 2018
1 parent 97949a9 commit ef18759
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions objc_msgSend.x86-32.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

mov (%eax), %eax # Load the class
1: # classLoaded
lea CDECL(_NSConcreteGlobalBlock), %edx
mov (%eax), %ecx
cmp %edx, %ecx
jne 9f
mov %ecx, %eax
9:
movl \sel(%esp), %ecx
mov DTABLE_OFFSET(%eax), %eax # Load the dtable from the class

Expand Down

0 comments on commit ef18759

Please sign in to comment.