From 589eff8b82ec4d4c53b90f79b73c1e28d6e2dcdf Mon Sep 17 00:00:00 2001 From: Jérôme Vouillon Date: Wed, 24 Apr 2024 13:18:40 -0400 Subject: Source maps: Fix missing debug info in nested blocks (#6525) The special block nesting logic also needs to handle emitting debug info. --- src/wasm-stack.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/wasm-stack.h b/src/wasm-stack.h index de8fd8b03..d6c0e46ec 100644 --- a/src/wasm-stack.h +++ b/src/wasm-stack.h @@ -328,6 +328,7 @@ void BinaryenIRWriter::visitBlock(Block* curr) { parents.push_back(curr); emit(curr); curr = child; + emitDebugLocation(curr); } // Emit the current block, which does not have a block as a child in the // first position. -- cgit v1.2.3