[llvm] 893ac53 - Fix -Wunused-variable
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 1 02:29:49 PDT 2021
Author: Alexander Kornienko
Date: 2021-09-01T11:29:30+02:00
New Revision: 893ac53afc1ae3d433fee2835a1c5db00369d0c4
URL: https://github.com/llvm/llvm-project/commit/893ac53afc1ae3d433fee2835a1c5db00369d0c4
DIFF: https://github.com/llvm/llvm-project/commit/893ac53afc1ae3d433fee2835a1c5db00369d0c4.diff
LOG: Fix -Wunused-variable
Added:
Modified:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index f33434790029..7be3115bb7db 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -10535,8 +10535,8 @@ SDValue PPCTargetLowering::LowerATOMIC_LOAD_STORE(SDValue Op,
SelectionDAG &DAG) const {
AtomicSDNode *N = cast<AtomicSDNode>(Op.getNode());
EVT MemVT = N->getMemoryVT();
- MVT VT = MemVT.getSimpleVT();
- assert(VT == MVT::i128 && "Expect quadword atomic operations");
+ assert(MemVT.getSimpleVT() == MVT::i128 &&
+ "Expect quadword atomic operations");
SDLoc dl(N);
unsigned Opc = N->getOpcode();
switch (Opc) {
More information about the llvm-commits
mailing list