We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bebd6b commit 4475e50Copy full SHA for 4475e50
test/lit/passes/gsi-desc.wast
@@ -366,6 +366,14 @@
366
;; CHECK-NEXT: (local.get $any)
367
;; CHECK-NEXT: )
368
369
+ ;; CHECK-NEXT: (drop
370
+ ;; CHECK-NEXT: (block ;; (replaces unreachable RefCast we can't emit)
371
372
+ ;; CHECK-NEXT: (unreachable)
373
+ ;; CHECK-NEXT: )
374
375
376
377
378
(func $test (param $any anyref)
379
;; We do not optimize here. TODO: we could with a select
@@ -374,6 +382,12 @@
382
(local.get $any)
383
)
384
385
+ ;; We do not error on unreachable casts.
386
+ (drop
387
+ (ref.cast (ref $A)
388
+ (unreachable)
389
+ )
390
391
392
393
0 commit comments