Skip to content

Commit cbf7d5f

Browse files
committed
[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.
1 parent bfcd053 commit cbf7d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static void emitStore(MachineFunction &MF, MachineBasicBlock &MBB,
223223
TypeSize Scale(0U, false);
224224
unsigned Width;
225225
int64_t MinOffset, MaxOffset;
226-
bool Success =
226+
[[maybe_unused]] bool Success =
227227
AArch64InstrInfo::getMemOpInfo(Opc, Scale, Width, MinOffset, MaxOffset);
228228
assert(Success && "Invalid Opcode");
229229
Offset *= (8 / (int)Scale);
@@ -265,7 +265,7 @@ static void emitLoad(MachineFunction &MF, MachineBasicBlock &MBB,
265265
TypeSize Scale(0U, false);
266266
unsigned Width;
267267
int64_t MinOffset, MaxOffset;
268-
bool Success =
268+
[[maybe_unused]] bool Success =
269269
AArch64InstrInfo::getMemOpInfo(Opc, Scale, Width, MinOffset, MaxOffset);
270270
assert(Success && "Invalid Opcode");
271271
Offset *= (8 / (int)Scale);

0 commit comments

Comments
 (0)