diff options
author | Alon Zakai <azakai@google.com> | 2024-02-28 15:40:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 23:40:36 +0000 |
commit | a9418461ef5188d2b2dea32b3047cc7bb3b173b3 (patch) | |
tree | d37d6f71aff0144a7d75efa4f53eac9d87435d68 /test/lit/passes/optimize-instructions-gc-heap.wast | |
parent | ac62d282167f489766c7d0cba31feede2072c4bc (diff) | |
download | binaryen-a9418461ef5188d2b2dea32b3047cc7bb3b173b3.tar.gz binaryen-a9418461ef5188d2b2dea32b3047cc7bb3b173b3.tar.bz2 binaryen-a9418461ef5188d2b2dea32b3047cc7bb3b173b3.zip |
[NFC] Add the type of the Expression when eliding it (#6362)
In some cases we don't print an Expression in full if it is unreachable, so
we print something instead as a placeholder. This happens in unreachable
code when the children don't provide enough info to print the parent (e.g.
a StructGet with an unreachable reference doesn't know what struct type
to use).
This PR prints out the name of the Expression type of such things, which
can help debugging sometimes.
Diffstat (limited to 'test/lit/passes/optimize-instructions-gc-heap.wast')
-rw-r--r-- | test/lit/passes/optimize-instructions-gc-heap.wast | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit/passes/optimize-instructions-gc-heap.wast b/test/lit/passes/optimize-instructions-gc-heap.wast index 5af517bfe..137105468 100644 --- a/test/lit/passes/optimize-instructions-gc-heap.wast +++ b/test/lit/passes/optimize-instructions-gc-heap.wast @@ -713,7 +713,7 @@ ;; CHECK: (func $unreachable (type $1) ;; CHECK-NEXT: (local $ref (ref null $struct)) ;; CHECK-NEXT: (local.tee $ref - ;; CHECK-NEXT: (block ;; (replaces something unreachable we can't emit) + ;; CHECK-NEXT: (block ;; (replaces unreachable StructNew we can't emit) ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (unreachable) ;; CHECK-NEXT: ) |