File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments