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 | |
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')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp index a799131..fa5776c 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp @@ -123,7 +123,7 @@ static SDValue getTagSymNode(int Tag, SelectionDAG *DAG) { static APInt encodeFunctionSignature(SelectionDAG *DAG, SDLoc &DL, SmallVector<MVT, 4> &Returns, SmallVector<MVT, 4> &Params) { - auto toWasmValType = [&DAG, &DL](MVT VT) { + auto toWasmValType = [&](MVT VT) { if (VT == MVT::i32) { return wasm::ValType::I32; } 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; } |