[llvm] cbf7d5f - [AArch64] Fix -Wunused-variable in AArch64LowerHomogeneousPrologEpilog.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 00:24:50 PDT 2023
Author: Jie Fu
Date: 2023-10-17T15:23:46+08:00
New Revision: cbf7d5f82b72d40770050c29d28a67a71497dac9
URL: https://github.com/llvm/llvm-project/commit/cbf7d5f82b72d40770050c29d28a67a71497dac9
DIFF: https://github.com/llvm/llvm-project/commit/cbf7d5f82b72d40770050c29d28a67a71497dac9.diff
LOG: [AArch64] Fix -Wunused-variable in AArch64LowerHomogeneousPrologEpilog.cpp (NFC)
/llvm-project/llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp:268:8: error: unused variable 'Success' [-Werror,-Wunused-variable]
bool Success =
^
2 errors generated.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp b/llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
index 4ebe1c9e0e66033..b8b74ae8404d3f3 100644
--- a/llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
@@ -223,7 +223,7 @@ static void emitStore(MachineFunction &MF, MachineBasicBlock &MBB,
TypeSize Scale(0U, false);
unsigned Width;
int64_t MinOffset, MaxOffset;
- bool Success =
+ [[maybe_unused]] bool Success =
AArch64InstrInfo::getMemOpInfo(Opc, Scale, Width, MinOffset, MaxOffset);
assert(Success && "Invalid Opcode");
Offset *= (8 / (int)Scale);
@@ -265,7 +265,7 @@ static void emitLoad(MachineFunction &MF, MachineBasicBlock &MBB,
TypeSize Scale(0U, false);
unsigned Width;
int64_t MinOffset, MaxOffset;
- bool Success =
+ [[maybe_unused]] bool Success =
AArch64InstrInfo::getMemOpInfo(Opc, Scale, Width, MinOffset, MaxOffset);
assert(Success && "Invalid Opcode");
Offset *= (8 / (int)Scale);
More information about the llvm-commits
mailing list