From f9b59249757eb2213798b97869ff9b9dbc6441a7 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 8 Sep 2022 18:27:16 -0700 Subject: [PATCH] [AArch64] Fix -Wunused-variable. NFC --- llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp b/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp index a3750fe..b42107a 100644 --- a/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp +++ b/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp @@ -293,6 +293,7 @@ bool AArch64MIPeepholeOpt::visitINSERT(MachineInstr &MI) { .add(MI.getOperand(2)) .add(MI.getOperand(3)); LLVM_DEBUG(dbgs() << MI << " replace by:\n: " << *SubregMI << "\n"); + (void)SubregMI; MI.eraseFromParent(); return true; -- 2.7.4