Skip to content

Commit 31b1834

Browse files
committed
work
1 parent b66a568 commit 31b1834

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

src/tools/fuzzing/fuzzing.cpp

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,20 +1772,11 @@ void TranslateToFuzzReader::mutate(Function* func) {
17721772
noteSubtype(sub, super);
17731773
}
17741774

1775-
// Casts always accept the top type.
1775+
// TODO: Many casts can accept the top type. We may need to use visit*(), to
1776+
// handle each expression class separately.
17761777
void noteCast(HeapType src, HeapType dst) {}
1777-
void noteCast(Expression* src, Type dst) {
1778-
if (!src || !dst.isRef()) {
1779-
return;
1780-
}
1781-
childTypes[src] = dst.with(dst.getHeapType().getTop()).with(Nullable);
1782-
}
1783-
void noteCast(Expression* src, Expression* dst) {
1784-
if (!dst) {
1785-
return;
1786-
}
1787-
noteCast(src, dst->type);
1788-
}
1778+
void noteCast(Expression* src, Type dst) {}
1779+
void noteCast(Expression* src, Expression* dst) {}
17891780
} finder;
17901781
finder.walkFunctionInModule(func, &wasm);
17911782

0 commit comments

Comments
 (0)