summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s2wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index d9c8ecfe1..54682e4b0 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -371,7 +371,7 @@ private:
else if (match("imports")) skipImports();
else if (match("data")) {}
else if (match("ident")) {}
- else if (match("section") || match("align")) s = strchr(s, '\n');
+ else if (match("section") || match("align") || match("p2align")) s = strchr(s, '\n');
else if (match("Lfunc_end")) {
// skip the next line, which has a .size we can ignore
s = strstr(s, ".size");