We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c70e2c commit d40f9d4Copy full SHA for d40f9d4
1 file changed
src/ir/module-utils.cpp
@@ -363,6 +363,14 @@ struct TypeInfos {
363
}
364
365
void note(Type type) {
366
+ if (type.isNumber() || type.getID() == Type::none ||
367
+ type.getID() == Type::unreachable) {
368
+ return;
369
+ }
370
+ if (type.isRef()) {
371
+ note(type.getHeapType());
372
373
374
for (HeapType ht : type.getHeapTypeChildren()) {
375
note(ht);
376
@@ -374,6 +382,14 @@ struct TypeInfos {
382
383
384
void include(Type type) {
385
386
387
388
389
390
+ include(type.getHeapType());
391
392
377
393
378
394
include(ht);
379
395
0 commit comments