Skip to content

Commit be2d9dd

Browse files
jrtc27resistor
authored andcommitted
[NFC][ELF][Mips] Remove redundant load of in.mipsCheriCapTable
This code is in MipsCheriCapTableSection::assignIndices so this is already the .captable.
1 parent 707cc92 commit be2d9dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/ELF/Arch/Cheri.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,8 @@ uint64_t MipsCheriCapTableSection::assignIndices(uint64_t startIndex,
767767
? ctx.in.relaPlt.get()
768768
: ctx.mainPart->relaDyn.get();
769769
addCapabilityRelocation<ELFT>(
770-
ctx, targetSym, elfCapabilityReloc, ctx.in.mipsCheriCapTable.get(), off,
771-
R_CHERI_CAPABILITY, 0, it.second.usedInCallExpr,
770+
ctx, targetSym, elfCapabilityReloc, this, off, R_CHERI_CAPABILITY, 0,
771+
it.second.usedInCallExpr,
772772
[&]() {
773773
return ("\n>>> referenced by " + refName + "\n>>> first used in " +
774774
it.second.firstUse->verboseToString(ctx))

0 commit comments

Comments
 (0)