Skip to content

Commit 46b37d3

Browse files
committed
test
1 parent c3d3c5a commit 46b37d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/passes/GlobalStructInference.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ struct GlobalStructInference : public Pass {
557557
}
558558

559559
// Check if the type has no subtypes, as a ref.cast_desc will find
560-
// precisely that type and nothing else.
560+
// precisely that type and nothing else. TODO: exact types too
561561
if (!parent.subTypes->getStrictSubTypes(heapType).empty()) {
562562
return;
563563
}
@@ -580,8 +580,6 @@ struct GlobalStructInference : public Pass {
580580
builder.makeGlobalGet(global, wasm.getGlobal(global)->type);
581581
auto* castDesc = builder.makeRefCast(curr->ref, getGlobal, curr->type);
582582
replaceCurrent(castDesc);
583-
584-
// TODO nullable cast?
585583
}
586584

587585
void visitFunction(Function* func) {

0 commit comments

Comments
 (0)