Skip to content

Commit 08aa70a

Browse files
committed
Remove unnecessary captures in toWasmValType
PR llvm#147486 broke the sanitizer buildbot. These captures were needed when toWasmValType emitted a diagnostic but are no longer needed since we changed it to an assertion failure. This removes the unneeded captures and should fix the sanitizer-buildbot.
1 parent a0973de commit 08aa70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static SDValue getTagSymNode(int Tag, SelectionDAG *DAG) {
123123
static APInt encodeFunctionSignature(SelectionDAG *DAG, SDLoc &DL,
124124
SmallVector<MVT, 4> &Returns,
125125
SmallVector<MVT, 4> &Params) {
126-
auto toWasmValType = [&](MVT VT) {
126+
auto toWasmValType = [](MVT VT) {
127127
if (VT == MVT::i32) {
128128
return wasm::ValType::I32;
129129
}

0 commit comments

Comments
 (0)