From 916ce6f1a9f7c85102a8c69f593b301c8df5d19d Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Wed, 9 Sep 2020 03:40:09 +0200 Subject: Update reference types (#3084) Align with the current state of the reference types proposal: * Remove `nullref` * Remove `externref` and `funcref` subtyping * A `Literal` of a nullable reference type can now represent `null` (previously was type `nullref`) * Update the tests and temporarily comment out those tests relying on subtyping --- src/passes/Print.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/passes/Print.cpp') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index f35f0d626..04fcdc0b3 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -1440,7 +1440,10 @@ struct PrintExpressionContents break; } } - void visitRefNull(RefNull* curr) { printMedium(o, "ref.null"); } + void visitRefNull(RefNull* curr) { + printMedium(o, "ref.null "); + o << curr->type.getHeapType(); + } void visitRefIsNull(RefIsNull* curr) { printMedium(o, "ref.is_null"); } void visitRefFunc(RefFunc* curr) { printMedium(o, "ref.func "); -- cgit v1.2.3