diff options
Diffstat (limited to 'test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt')
-rw-r--r-- | test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt b/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt index 28348883a..fb9e2907b 100644 --- a/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt +++ b/test/passes/generate-stack-ir_optimize-stack-ir_print-stack-ir_all-features.txt @@ -3,20 +3,15 @@ (type $i32_=>_none (func (param i32))) (event $e0 (attr 0) (param i32)) (func $eh - (local $exn exnref) try i32.const 0 throw $e0 catch - local.set $exn - block $l0 (result i32) - local.get $exn - br_on_exn $l0 $e0 - rethrow - end drop + rethrow 0 end + unreachable ) ) (module @@ -24,26 +19,17 @@ (type $i32_=>_none (func (param i32))) (event $e0 (attr 0) (param i32)) (func $eh (; has Stack IR ;) - (local $exn exnref) (try (do (throw $e0 (i32.const 0) ) ) - (catch - (local.set $exn - (pop exnref) - ) + (catch $e0 (drop - (block $l0 (result i32) - (rethrow - (br_on_exn $l0 $e0 - (local.get $exn) - ) - ) - ) + (pop i32) ) + (rethrow 0) ) ) ) |