Skip to content

Commit f8a018b

Browse files
basilisk-devdavidchisnall
authored andcommitted
tweak objc_msgSend.loongarch64.S to compile on older clang/llvm verisons
1 parent 833a8e6 commit f8a018b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

objc_msgSend.loongarch64.S

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@
7474
addi.d $sp, $sp, -16
7575
st.d \receiver, $sp, 0 // Keep &self at sp for slowMsgLookup
7676

77-
.cfi_def_cfa fp, 16
78-
.cfi_offset fp, -16
79-
.cfi_offset ra, -8
77+
// Use explicit DWARF register numbers for compatibility with older Clang IAS.
78+
.cfi_def_cfa 22, 16
79+
.cfi_offset 22, -16
80+
.cfi_offset 1, -8
8081

8182
move $a0, $sp // &self in first argument
8283
move $a1, \sel

0 commit comments

Comments
 (0)