diff options
author | Kazu Hirata <kazu@google.com> | 2025-07-22 14:48:09 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2025-07-22 14:48:09 -0700 |
commit | 160d46d4c3f456868c41d56d5819d7ae2a1ba5d5 (patch) | |
tree | b273f56e33c5fdef98db9b717edb07e6181abce4 /llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp | |
parent | 16b4fb50dd05fa4b31cfe702e3b1d1e1a55398f5 (diff) | |
download | llvm-160d46d4c3f456868c41d56d5819d7ae2a1ba5d5.zip llvm-160d46d4c3f456868c41d56d5819d7ae2a1ba5d5.tar.gz llvm-160d46d4c3f456868c41d56d5819d7ae2a1ba5d5.tar.bz2 |
[WebAssembly] Fix warnings
This patch fixes:
llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp:126:26:
error: lambda capture 'DAG' is not used
[-Werror,-Wunused-lambda-capture]
llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp:239:28:
error: unused variable 'Info' [-Werror,-Wunused-variable]
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp index 4a57669..4613fcb 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp @@ -239,6 +239,7 @@ void WebAssemblyMCInstLower::lower(const MachineInstr *MI, const MCOperandInfo &Info = Operands[DescIndex]; assert(Info.OperandType == WebAssembly::OPERAND_TYPEINDEX && "unexpected CImmediate operand"); + (void)Info; MCOp = lowerEncodedFunctionSignature(MO.getCImm()->getValue()); break; } |