summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.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/wasm/wasm-validator.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/wasm/wasm-validator.cpp')
-rw-r--r--src/wasm/wasm-validator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp
index 8abcd92fe..274e1fd1c 100644
--- a/src/wasm/wasm-validator.cpp
+++ b/src/wasm/wasm-validator.cpp
@@ -80,7 +80,7 @@ struct ValidationInfo {
if (iter != outputs.end()) {
return *(iter->second.get());
}
- auto& ret = outputs[func] = make_unique<std::ostringstream>();
+ auto& ret = outputs[func] = std::make_unique<std::ostringstream>();
return *ret.get();
}