Commit 18640f86 authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Commit Bot

[wasm] Resize over instantiating vector in graph-builder-interface

Change-Id: I6970506864a5b2604f9d4607c2f20ffa2b409c9e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2621078Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72033}
parent bf6a80f3
...@@ -1183,7 +1183,7 @@ class WasmGraphBuildingInterface { ...@@ -1183,7 +1183,7 @@ class WasmGraphBuildingInterface {
} }
SsaEnv* result = zone->New<SsaEnv>(std::move(*from)); SsaEnv* result = zone->New<SsaEnv>(std::move(*from));
// Restore the length of {from->locals} after applying move-constructor. // Restore the length of {from->locals} after applying move-constructor.
from->locals = ZoneVector<TFNode*>(result->locals.size(), zone); from->locals.resize(result->locals.size());
result->state = SsaEnv::kReached; result->state = SsaEnv::kReached;
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment