[llvm] [NFC][WebAssembly] Inline var only used in assertion (PR #113507)

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 23 16:47:42 PDT 2024


https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/113507

None

>From d4799cb7f09b488a9bfc4d99db56a4a857246ef6 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Wed, 23 Oct 2024 16:47:05 -0700
Subject: [PATCH] [NFC][WebAssembly] Inline var only used in assertion

---
 llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 8611c05be89a11..fb9f980cfff29c 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -1635,8 +1635,7 @@ SDValue WebAssemblyTargetLowering::LowerMUL_LOHI(SDValue Op,
 SDValue WebAssemblyTargetLowering::Replace128Op(SDNode *N,
                                                 SelectionDAG &DAG) const {
   assert(Subtarget->hasWideArithmetic());
-  auto ValTy = N->getValueType(0);
-  assert(ValTy == MVT::i128);
+  assert(N->getValueType(0) == MVT::i128);
   SDLoc DL(N);
   unsigned Opcode;
   switch (N->getOpcode()) {



More information about the llvm-commits mailing list