Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 258950a91bba98e2ce0e7eb58c0d703131f6fa42..ce65b9b729a8b34710b27fd59495f6b49f44036a 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <memory> |
+ |
#include "src/base/atomic-utils.h" |
#include "src/macro-assembler.h" |
#include "src/objects.h" |
@@ -794,7 +796,7 @@ void CompileInParallel(Isolate* isolate, const WasmModule* module, |
// 2) The main thread spawns {WasmCompilationTask} instances which run on |
// the background threads. |
- base::SmartArrayPointer<uint32_t> task_ids(StartCompilationTasks( |
+ std::unique_ptr<uint32_t[]> task_ids(StartCompilationTasks( |
isolate, compilation_units, executed_units, module->pending_tasks.get(), |
result_mutex, next_unit)); |