diff options
author | Alon Zakai <azakai@google.com> | 2021-01-09 00:10:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 16:10:11 -0800 |
commit | d7e9150e38f14c7ca083fe48bf1f49ab77cfc794 (patch) | |
tree | 9e10db3abde129b45d30e9ef0f55430045eb6599 /src | |
parent | b266279cd393378bceab52e06b7b8bd0a5d7a80b (diff) | |
download | binaryen-d7e9150e38f14c7ca083fe48bf1f49ab77cfc794.tar.gz binaryen-d7e9150e38f14c7ca083fe48bf1f49ab77cfc794.tar.bz2 binaryen-d7e9150e38f14c7ca083fe48bf1f49ab77cfc794.zip |
Add more verbose logging of an assert that only happens on the release builder for some inexplicable reason (#3477)
See #3459
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/literal.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 49d3cbf63..3f6ca8ff5 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -120,7 +120,12 @@ Literal::~Literal() { // Nothing special to do. } else { // Basic types need no special handling. - assert(type.isBasic()); + // TODO: change this to an assert after we figure out the underlying issue + // on the release builder + // https://github.com/WebAssembly/binaryen/issues/3459 + if (!type.isBasic()) { + Fatal() << "~Literal on unhandled type: " << type << '\n'; + } } } |