[llvm] af86a10 - [llvm] Fix unused variable warning
Kadir Cetinkaya via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 13:48:10 PDT 2020
Author: Kadir Cetinkaya
Date: 2020-06-02T22:46:24+02:00
New Revision: af86a10bad28d1829370bfa9b8b7bb9302f637d2
URL: https://github.com/llvm/llvm-project/commit/af86a10bad28d1829370bfa9b8b7bb9302f637d2
DIFF: https://github.com/llvm/llvm-project/commit/af86a10bad28d1829370bfa9b8b7bb9302f637d2.diff
LOG: [llvm] Fix unused variable warning
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 707a8fd6c35b..538c93d1b8c6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -7944,6 +7944,7 @@ static SDValue combineShiftToMULH(SDNode *N, SelectionDAG &DAG,
EVT WideVT1 = LeftOp.getValueType();
EVT WideVT2 = RightOp.getValueType();
+ (void)WideVT2;
// Proceed with the transformation if the wide types match.
assert((WideVT1 == WideVT2) &&
"Cannot have a multiply node with two
diff erent operand types.");
More information about the llvm-commits
mailing list