wasm: fix line section in DWARF

This commit is contained in:
Alexey Andreev 2023-08-23 21:10:42 +02:00
parent eebc316029
commit 49485efdff

View File

@ -989,7 +989,8 @@ class WasmBinaryRenderingVisitor implements WasmExpressionVisitor {
} }
public void endLocation() { public void endLocation() {
emitLocation(null); textLocationToEmit = null;
deferTextLocationToEmit = false;
flushLocation(); flushLocation();
if (debugLines != null) { if (debugLines != null) {
debugLines.advance(writer.getPosition() + addressOffset); debugLines.advance(writer.getPosition() + addressOffset);