Skip to content

Commit ff1567b

Browse files
committed
Revert "Add an assert to ensure behavior consistency with ld.bfd."
This reverts commit 52bec2b.
1 parent 52bec2b commit ff1567b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lld/ELF/Arch/LoongArch.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -850,10 +850,6 @@ static void relaxCall36(Ctx &ctx, const InputSection &sec, size_t i,
850850
return;
851851

852852
const uint32_t nextInsn = read32le(sec.content().data() + r.offset + 4);
853-
// To ensure behavior consistency with ld.bfd, we add an assert here.
854-
// https://github.com/llvm/llvm-project/pull/123576#discussion_r1974854075
855-
assert(isJirl(nextInsn) &&
856-
"The second instruction related to R_LARCH_CALL36 must be JIRL");
857853
if (getD5(nextInsn) == R_RA) {
858854
// convert jirl to bl
859855
sec.relaxAux->relocTypes[i] = R_LARCH_B26;

0 commit comments

Comments
 (0)