Skip to content

Commit

Permalink
Clear mutation on failure
Browse files Browse the repository at this point in the history
Summary: As title. Clean up instructions that will not be used.

Reviewed By: beicy

Differential Revision: D48983938

fbshipit-source-id: d4b8512abde35e2ad6f46765fac9cebe1635cb3e
  • Loading branch information
agampe authored and facebook-github-bot committed Sep 6, 2023
1 parent 61664f4 commit 037039a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opt/object-escape-analysis/ObjectEscapeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ class RootMethodReducer {
auto param_index = it2->second;
auto expanded_method_ref = expand_invoke(mutation, it, param_index);
if (!expanded_method_ref) {
mutation.clear();
return false;
}
expanded_method_refs->insert(expanded_method_ref);
Expand Down

0 comments on commit 037039a

Please sign in to comment.