diff options
Diffstat (limited to 'src/wasm/wasm-ir-builder.cpp')
-rw-r--r-- | src/wasm/wasm-ir-builder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp index bf3c38c1e..dadda0f25 100644 --- a/src/wasm/wasm-ir-builder.cpp +++ b/src/wasm/wasm-ir-builder.cpp @@ -1323,7 +1323,7 @@ Result<> IRBuilder::makePop(Type type) { "pop instructions may only appear at the beginning of catch blocks"}; } auto expectedType = scope.exprStack[0]->type; - if (type != expectedType) { + if (!Type::isSubType(expectedType, type)) { return Err{std::string("Expected pop of type ") + expectedType.toString()}; } return Ok{}; |