[PATCH] D127940: [JITLink][AArch64][NFC] Suppress unused variable error.
Sunho Kim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 23:14:48 PDT 2022
sunho created this revision.
sunho added reviewers: lhames, sgraenitz, chapuni.
Herald added subscribers: StephenFan, kristof.beyls.
Herald added a project: All.
sunho requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Suppress unused variable error when assertion got disabled.
https://reviews.llvm.org/D127940
Files:
llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h
Index: llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h
===================================================================
--- llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h
+++ llvm/include/llvm/ExecutionEngine/JITLink/aarch64.h
@@ -266,6 +266,7 @@
case aarch64::TLVPageOffset12: {
KindToSet = aarch64::PageOffset12;
uint32_t RawInstr = *(const support::ulittle32_t *)FixupPtr;
+ (void)RawInstr;
assert(E.getAddend() == 0 &&
"GOTPageOffset12/TLVPageOffset12 with non-zero addend");
assert((RawInstr & 0xfffffc00) == 0xf9400000 &&
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127940.437453.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220616/0868b2fa/attachment.bin>
More information about the llvm-commits
mailing list