From 79c94ea62a665beccf12a7b93b23599ae04937dd Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Fri, 31 Mar 2023 15:20:57 -0700 Subject: [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. --- src/wasm/wasm-validator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wasm/wasm-validator.cpp') 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(); + auto& ret = outputs[func] = std::make_unique(); return *ret.get(); } -- cgit v1.2.3