diff options
author | Thomas Lively <tlively@google.com> | 2023-03-31 15:20:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 15:20:57 -0700 |
commit | 79c94ea62a665beccf12a7b93b23599ae04937dd (patch) | |
tree | 16467120420b3b6f1ce5682af62346db391fa1a1 /src/passes/I64ToI32Lowering.cpp | |
parent | c2c8062bfe6bf65a4a41a617241a8f32b50387e6 (diff) | |
download | binaryen-79c94ea62a665beccf12a7b93b23599ae04937dd.tar.gz binaryen-79c94ea62a665beccf12a7b93b23599ae04937dd.tar.bz2 binaryen-79c94ea62a665beccf12a7b93b23599ae04937dd.zip |
[NFC] Remove our bespoke `make_unique` implementation (#5613)
This code predates our adoption of C++14 and can now be removed in favor of
`std::make_unique`, which should be more efficient.
Diffstat (limited to 'src/passes/I64ToI32Lowering.cpp')
-rw-r--r-- | src/passes/I64ToI32Lowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/I64ToI32Lowering.cpp b/src/passes/I64ToI32Lowering.cpp index eababc549..ec66b1121 100644 --- a/src/passes/I64ToI32Lowering.cpp +++ b/src/passes/I64ToI32Lowering.cpp @@ -105,7 +105,7 @@ struct I64ToI32Lowering : public WalkerPass<PostWalker<I64ToI32Lowering>> { void doWalkModule(Module* module) { if (!builder) { - builder = make_unique<Builder>(*module); + builder = std::make_unique<Builder>(*module); } // add new globals for high bits for (size_t i = 0, globals = module->globals.size(); i < globals; ++i) { @@ -154,7 +154,7 @@ struct I64ToI32Lowering : public WalkerPass<PostWalker<I64ToI32Lowering>> { Flat::verifyFlatness(func); // create builder here if this is first entry to module for this object if (!builder) { - builder = make_unique<Builder>(*getModule()); + builder = std::make_unique<Builder>(*getModule()); } indexMap.clear(); highBitVars.clear(); |