From d99a1b950ec952c328d9f27e2f0ff824021fb866 Mon Sep 17 00:00:00 2001 From: Clemens Hammacher Date: Mon, 29 Oct 2018 11:04:33 +0100 Subject: [PATCH] [wasm] Turn field into local variable R=titzer@chromium.org Change-Id: Ib3b1cd479b42865420879bff9f1a83558585eb05 Reviewed-on: https://chromium-review.googlesource.com/c/1303301 Commit-Queue: Clemens Hammacher Reviewed-by: Ben Titzer Cr-Commit-Position: refs/heads/master@{#57072} --- src/wasm/module-compiler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wasm/module-compiler.cc b/src/wasm/module-compiler.cc index 03ab623047..39554b0638 100644 --- a/src/wasm/module-compiler.cc +++ b/src/wasm/module-compiler.cc @@ -855,18 +855,18 @@ class BackgroundCompileTask : public CancelableTask { // {OnBackgroundTaskStopped}. CompilationEnv env = native_module_->CreateCompilationEnv(); auto* compilation_state = Impl(native_module_->compilation_state()); + WasmFeatures detected_features = kNoWasmFeatures; while (!compilation_state->failed()) { if (!FetchAndExecuteCompilationUnit(&env, compilation_state, - &detected_features_)) { + &detected_features)) { break; } } - compilation_state->OnBackgroundTaskStopped(detected_features_); + compilation_state->OnBackgroundTaskStopped(detected_features); } private: NativeModule* const native_module_; - WasmFeatures detected_features_ = kNoWasmFeatures; }; } // namespace