[llvm] 6cf1bd3 - [VE] Fix an 'unused variable' warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 18 11:25:19 PDT 2022
Author: Kazu Hirata
Date: 2022-03-18T11:24:56-07:00
New Revision: 6cf1bd3ad376c391f83c9baba72977a8eb8eb01a
URL: https://github.com/llvm/llvm-project/commit/6cf1bd3ad376c391f83c9baba72977a8eb8eb01a
DIFF: https://github.com/llvm/llvm-project/commit/6cf1bd3ad376c391f83c9baba72977a8eb8eb01a.diff
LOG: [VE] Fix an 'unused variable' warning
This patch fixes:
llvm/lib/Target/VE/VVPISelLowering.cpp:186:11: error: unused
variable 'PassThru' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Target/VE/VVPISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/VVPISelLowering.cpp b/llvm/lib/Target/VE/VVPISelLowering.cpp
index 73807b84e3b1b..cd67a0fb40f26 100644
--- a/llvm/lib/Target/VE/VVPISelLowering.cpp
+++ b/llvm/lib/Target/VE/VVPISelLowering.cpp
@@ -183,8 +183,8 @@ SDValue VETargetLowering::splitPackedLoadStore(SDValue Op,
"Can only split packed load/store");
MVT SplitDataVT = splitVectorType(DataVT);
- SDValue PassThru = getNodePassthru(Op);
- assert(!PassThru && "Should have been folded in lowering to VVP layer");
+ assert(!getNodePassthru(Op) &&
+ "Should have been folded in lowering to VVP layer");
// Analyze the operation
SDValue PackedMask = getNodeMask(Op);
More information about the llvm-commits
mailing list