Skip to content

Commit

Permalink
[JITLink][PowerPC] Fixed unused variable warning. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzEq committed Jul 10, 2023
1 parent 3a80bdb commit 79786c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ inline Error applyFixup(LinkGraph &G, Block &B, const Edge &E,
uint32_t NopInst = support::endian::read32<Endianness>(FixupPtr + 4);
assert(NopInst == 0x60000000 &&
"NOP should be placed here for restoring r2");
(void)NopInst;
// Restore r2 by instruction 0xe8410018 which is `ld r2, 24(r1)`.
support::endian::write32<Endianness>(FixupPtr + 4, 0xe8410018);
}
Expand Down

0 comments on commit 79786c4

Please sign in to comment.