Commit 258c2c35 authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Fix loop exit rename for return/throw.

Review-Url: https://codereview.chromium.org/2174313002
Cr-Commit-Position: refs/heads/master@{#38031}
parent 52f2ceb0
......@@ -91,7 +91,7 @@ void LoopBuilder::ExitLoop(Node** extra_value_to_rename) {
environment()->PrepareForLoopExit(loop_environment_->GetControlDependency(),
assigned_);
if (extra_value_to_rename) {
environment()->Pop();
*extra_value_to_rename = environment()->Pop();
}
}
......
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