summaryrefslogtreecommitdiff
path: root/src/passes/TrapMode.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/TrapMode.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/TrapMode.cpp')
-rw-r--r--src/passes/TrapMode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/TrapMode.cpp b/src/passes/TrapMode.cpp
index 8ea6fbfa1..3b62b0573 100644
--- a/src/passes/TrapMode.cpp
+++ b/src/passes/TrapMode.cpp
@@ -321,7 +321,8 @@ public:
void visitModule(Module* curr) { trappingFunctions->addToModule(); }
void doWalkModule(Module* module) {
- trappingFunctions = make_unique<TrappingFunctionContainer>(mode, *module);
+ trappingFunctions =
+ std::make_unique<TrappingFunctionContainer>(mode, *module);
super::doWalkModule(module);
}