@@ -1737,17 +1737,16 @@ void TranslateToFuzzReader::mutate(Function* func) {
17371737 // First, find things to replace and their types. SubtypingDiscoverer needs to
17381738 // do this in a single, full walk (as types of children depend on parents, and
17391739 // even block targets).
1740- struct Finder : public ControlFlowWalker <Finder, SubtypingDiscoverer<Finder>> {
1740+ struct Finder
1741+ : public ControlFlowWalker<Finder, SubtypingDiscoverer<Finder>> {
17411742 // Maps children we can replace to the types we can replace them with. We
17421743 // only store nontrivial ones (i.e., where the type is not just the child's
17431744 // type).
17441745 std::unordered_map<Expression*, Type> childTypes;
17451746
17461747 // We only care about constraints on Expression* things.
1747- void noteSubtype (Type sub, Type super) {
1748- }
1749- void noteSubtype (HeapType sub, HeapType super) {
1750- }
1748+ void noteSubtype (Type sub, Type super) {}
1749+ void noteSubtype (HeapType sub, HeapType super) {}
17511750
17521751 void noteSubtype (Type sub, Expression* super) {
17531752 // The expression must be a supertype of a fixed type. Nothing to do.
@@ -1806,18 +1805,19 @@ void TranslateToFuzzReader::mutate(Function* func) {
18061805
18071806 // Find the type to replace with.
18081807 auto type = curr->type ;
1809- // std::cout << "on " << type << '\n';
1808+ // std::cout << "on " << type << '\n';
18101809 if (type.isRef ()) {
18111810 auto iter = finder.childTypes .find (curr);
18121811 if (iter != finder.childTypes .end ()) {
18131812 type = iter->second ;
18141813 // We can only be given a less-refined type (certainly we can replace
18151814 // curr with its own type).
18161815 assert (Type::isSubType (curr->type , type));
1817- if (type != curr->type ) {
1818- std::cout << *curr << " 2with " << type <<" in " << *getFunction () << ' \n ' ;
1819- abort ();
1820- }
1816+ if (type != curr->type ) {
1817+ std::cout << *curr << " 2with " << type << " in " << *getFunction ()
1818+ << ' \n ' ;
1819+ abort ();
1820+ }
18211821 }
18221822 }
18231823
0 commit comments