summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-05-09 16:04:30 -0700
committerGitHub <noreply@github.com>2017-05-09 16:04:30 -0700
commit647271a97ac534320ef5477367d1eb511afdebd5 (patch)
tree5f8a31c217323fbc2128e5df4aa491abdc76dada /src
parent64aa81e0e9655cf16e3af65e1bbe98e7fc6cf974 (diff)
downloadbinaryen-647271a97ac534320ef5477367d1eb511afdebd5.tar.gz
binaryen-647271a97ac534320ef5477367d1eb511afdebd5.tar.bz2
binaryen-647271a97ac534320ef5477367d1eb511afdebd5.zip
fix autoDrop, now that we properly set block types, unreachable can easily happen, and autoDrop wasn't handling it (#1005)
Diffstat (limited to 'src')
-rw-r--r--src/ast_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast_utils.h b/src/ast_utils.h
index 17627d959..5a7c40630 100644
--- a/src/ast_utils.h
+++ b/src/ast_utils.h
@@ -426,7 +426,7 @@ struct AutoDrop : public WalkerPass<ExpressionStackWalker<AutoDrop>> {
}
if (maybeDrop(curr->list.back())) {
reFinalize();
- assert(curr->type == none);
+ assert(curr->type == none || curr->type == unreachable);
}
}