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

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 23 16:51:28 PDT 2024


Author: Jordan Rupprecht
Date: 2024-10-23T18:51:25-05:00
New Revision: 33363521ca24f912cc25530f6cecbca53acce8a3

URL: https://github.com/llvm/llvm-project/commit/33363521ca24f912cc25530f6cecbca53acce8a3
DIFF: https://github.com/llvm/llvm-project/commit/33363521ca24f912cc25530f6cecbca53acce8a3.diff

LOG: [NFC][WebAssembly] Inline var only used in assertion (#113507)

Added: 
    

Modified: 
    llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Removed: 
    


################################################################################
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