[llvm] fa66e4b - [AArch64] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 13:01:27 PST 2023
Author: Kazu Hirata
Date: 2023-02-27T13:01:02-08:00
New Revision: fa66e4bd9315d20990c86ef57c7901b6dc71bd02
URL: https://github.com/llvm/llvm-project/commit/fa66e4bd9315d20990c86ef57c7901b6dc71bd02
DIFF: https://github.com/llvm/llvm-project/commit/fa66e4bd9315d20990c86ef57c7901b6dc71bd02.diff
LOG: [AArch64] Fix a warning
This patch fixes:
llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp:582:17: error:
unused variable 'INSvilaneMI' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp b/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
index 199e1f748d1f..bdaba7b22799 100644
--- a/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
+++ b/llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp
@@ -587,6 +587,7 @@ bool AArch64MIPeepholeOpt::visitINSviGPR(MachineInstr &MI, unsigned Opc) {
.addImm(0);
LLVM_DEBUG(dbgs() << MI << " replace by:\n: " << *INSvilaneMI << "\n");
+ (void)INSvilaneMI;
MI.eraseFromParent();
return true;
}
More information about the llvm-commits
mailing list