[llvm] a93b179 - [AArch64] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 10 08:33:18 PST 2021
Author: Kazu Hirata
Date: 2021-12-10T08:33:07-08:00
New Revision: a93b1792f1c8f7e2e7c931993110dc48f7ddba01
URL: https://github.com/llvm/llvm-project/commit/a93b1792f1c8f7e2e7c931993110dc48f7ddba01
DIFF: https://github.com/llvm/llvm-project/commit/a93b1792f1c8f7e2e7c931993110dc48f7ddba01.diff
LOG: [AArch64] Fix a warning
This patch fixes:
llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp:315:7:
error: unused variable 'ValTy' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp b/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
index 5316a01b5ed94..bbf6720985b2c 100644
--- a/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
+++ b/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
@@ -314,6 +314,7 @@ static void applySplitStoreZero128(MachineInstr &MI, MachineRegisterInfo &MRI,
GStore &Store = cast<GStore>(MI);
LLT ValTy = MRI.getType(Store.getValueReg());
assert(ValTy.isVector() && "Expected a vector store value");
+ (void)ValTy;
LLT NewTy = LLT::scalar(64);
Register PtrReg = Store.getPointerReg();
auto Zero = B.buildConstant(NewTy, 0);
More information about the llvm-commits
mailing list