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/StackIR.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/StackIR.cpp')
-rw-r--r-- | src/passes/StackIR.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/StackIR.cpp b/src/passes/StackIR.cpp index 2614a36a1..bbce6bae8 100644 --- a/src/passes/StackIR.cpp +++ b/src/passes/StackIR.cpp @@ -40,7 +40,7 @@ struct GenerateStackIR : public WalkerPass<PostWalker<GenerateStackIR>> { void doWalkFunction(Function* func) { StackIRGenerator stackIRGen(*getModule(), func); stackIRGen.write(); - func->stackIR = make_unique<StackIR>(); + func->stackIR = std::make_unique<StackIR>(); func->stackIR->swap(stackIRGen.getStackIR()); } }; |