[llvm] 79786c4 - [JITLink][PowerPC] Fixed unused variable warning. NFC.
Kai Luo via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 01:14:11 PDT 2023
Author: Kai Luo
Date: 2023-07-10T16:13:55+08:00
New Revision: 79786c4d23f1fd7af438e4fd4e33ec109626bee4
URL: https://github.com/llvm/llvm-project/commit/79786c4d23f1fd7af438e4fd4e33ec109626bee4
DIFF: https://github.com/llvm/llvm-project/commit/79786c4d23f1fd7af438e4fd4e33ec109626bee4.diff
LOG: [JITLink][PowerPC] Fixed unused variable warning. NFC.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h b/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
index 333adbe6a9b0a9..d4b7256e563a9e 100644
--- a/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
+++ b/llvm/include/llvm/ExecutionEngine/JITLink/ppc64.h
@@ -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);
}
More information about the llvm-commits
mailing list