summaryrefslogtreecommitdiff
path: root/src/passes/StackIR.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-03-31 15:20:57 -0700
committerGitHub <noreply@github.com>2023-03-31 15:20:57 -0700
commit79c94ea62a665beccf12a7b93b23599ae04937dd (patch)
tree16467120420b3b6f1ce5682af62346db391fa1a1 /src/passes/StackIR.cpp
parentc2c8062bfe6bf65a4a41a617241a8f32b50387e6 (diff)
downloadbinaryen-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.cpp2
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());
}
};