Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC][WebAssembly] Inline var only used in assertion #113507

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

rupprecht
Copy link
Collaborator

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Oct 23, 2024

@llvm/pr-subscribers-backend-webassembly

Author: Jordan Rupprecht (rupprecht)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/113507.diff

1 Files Affected:

  • (modified) llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (+1-2)
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()) {

@rupprecht rupprecht merged commit 3336352 into llvm:main Oct 23, 2024
7 of 10 checks passed
@frobtech frobtech mentioned this pull request Oct 25, 2024
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants