File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1026,7 +1026,7 @@ enum ASTNodes {
1026
1026
1027
1027
Try = 0x06 ,
1028
1028
Catch = 0x07 ,
1029
- CatchAll = 0x05 ,
1029
+ CatchAll = 0x19 ,
1030
1030
Delegate = 0x18 ,
1031
1031
Throw = 0x08 ,
1032
1032
Rethrow = 0x09 ,
@@ -1617,4 +1617,4 @@ class WasmBinaryBuilder {
1617
1617
1618
1618
#undef DEBUG_TYPE
1619
1619
1620
- #endif // wasm_wasm_binary_h
1620
+ #endif // wasm_wasm_binary_h
Original file line number Diff line number Diff line change @@ -2967,16 +2967,13 @@ BinaryConsts::ASTNodes WasmBinaryBuilder::readExpression(Expression*& curr) {
2967
2967
}
2968
2968
break ;
2969
2969
case BinaryConsts::Else:
2970
- case BinaryConsts::Catch: {
2970
+ case BinaryConsts::Catch:
2971
+ case BinaryConsts::CatchAll: {
2971
2972
curr = nullptr ;
2972
2973
if (DWARF && currFunction) {
2973
2974
assert (!controlFlowStack.empty ());
2974
2975
auto currControlFlow = controlFlowStack.back ();
2975
2976
BinaryLocation delimiterId;
2976
- // Else and CatchAll have the same binary ID, so differentiate them
2977
- // using the control flow stack.
2978
- static_assert (BinaryConsts::CatchAll == BinaryConsts::Else,
2979
- " Else and CatchAll should have identical codes" );
2980
2977
if (currControlFlow->is <If>()) {
2981
2978
delimiterId = BinaryLocations::Else;
2982
2979
} else {
You can’t perform that action at this time.
0 commit comments