Use brace-initialization in some places
diff --git a/src/passes/GlobalEffects.cpp b/src/passes/GlobalEffects.cpp index d4826c4..1e95b9b 100644 --- a/src/passes/GlobalEffects.cpp +++ b/src/passes/GlobalEffects.cpp
@@ -254,7 +254,7 @@ } // Function -> Type - allFunctionTypes.insert(std::pair(caller->type.getHeapType(), Exact)); + allFunctionTypes.insert({caller->type.getHeapType(), Exact}); for (auto calleeTypeExact : callerInfo.indirectCalledTypes) { callees.insert(calleeTypeExact); @@ -290,13 +290,13 @@ switch (exactness) { case Exact: { callGraph[std::pair(type, Inexact)].insert(typeAndExactness); - push(std::pair(type, Inexact)); + push({type, Inexact}); break; } case Inexact: { if (auto super = type.getDeclaredSuperType()) { callGraph[std::pair(*super, Inexact)].insert(typeAndExactness); - push(std::pair(*super, Inexact)); + push({*super, Inexact}); } break; }