diff options
author | Max Graey <maxgraey@gmail.com> | 2021-11-23 07:03:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 21:03:25 -0800 |
commit | 7f24fce21a92f2aed4a11745d27d5181798ba6cd (patch) | |
tree | 80655dc933e3c2ae3ae53b7960cd71a6a022c3da /src/passes/DuplicateImportElimination.cpp | |
parent | 37999167bb333dd0b12d744af8e633897e65cff8 (diff) | |
download | binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.gz binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.bz2 binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.zip |
Modernize code to C++17 (#3104)
Diffstat (limited to 'src/passes/DuplicateImportElimination.cpp')
-rw-r--r-- | src/passes/DuplicateImportElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/DuplicateImportElimination.cpp b/src/passes/DuplicateImportElimination.cpp index a4d9065c5..faf2bb776 100644 --- a/src/passes/DuplicateImportElimination.cpp +++ b/src/passes/DuplicateImportElimination.cpp @@ -34,7 +34,7 @@ struct DuplicateImportElimination : public Pass { std::map<std::pair<Name, Name>, Name> seen; std::vector<Name> toRemove; for (auto* func : imports.importedFunctions) { - auto pair = std::make_pair(func->module, func->base); + auto pair = std::pair{func->module, func->base}; auto iter = seen.find(pair); if (iter != seen.end()) { auto previousName = iter->second; |