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 c3d3c5a commit 46b37d3Copy full SHA for 46b37d3
src/passes/GlobalStructInference.cpp
@@ -557,7 +557,7 @@ struct GlobalStructInference : public Pass {
557
}
558
559
// Check if the type has no subtypes, as a ref.cast_desc will find
560
- // precisely that type and nothing else.
+ // precisely that type and nothing else. TODO: exact types too
561
if (!parent.subTypes->getStrictSubTypes(heapType).empty()) {
562
return;
563
@@ -580,8 +580,6 @@ struct GlobalStructInference : public Pass {
580
builder.makeGlobalGet(global, wasm.getGlobal(global)->type);
581
auto* castDesc = builder.makeRefCast(curr->ref, getGlobal, curr->type);
582
replaceCurrent(castDesc);
583
-
584
- // TODO nullable cast?
585
586
587
void visitFunction(Function* func) {
0 commit comments