Skip to content

Commit f9a39df

Browse files
committed
[ORC] Fix typo in comment: instruction is ldr literal, not adr. NFC.
1 parent b582596 commit f9a39df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/Orc/OrcABISupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void OrcAArch64::writeTrampolines(char *TrampolineBlockWorkingMem,
152152

153153
for (unsigned I = 0; I < NumTrampolines; ++I, OffsetToPtr -= TrampolineSize) {
154154
Trampolines[3 * I + 0] = 0xaa1e03f1; // mov x17, x30
155-
Trampolines[3 * I + 1] = 0x58000010 | (OffsetToPtr << 3); // adr x16, Lptr
155+
Trampolines[3 * I + 1] = 0x58000010 | (OffsetToPtr << 3); // ldr x16, Lptr
156156
Trampolines[3 * I + 2] = 0xd63f0200; // blr x16
157157
}
158158
}

0 commit comments

Comments
 (0)