-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recurse into functions to check for out-of-scope variables in definit…
…ions When considering inlining a definition like "x = y", FlowSensitiveInlineVariables previously traversed the right hand side "y" to make sure it was safe to inline, but did not traverse into functions on the right hand side. This CL adds a second traversal of the rhs. It traverses into functions and finds variable references that are not out-of-scope at the point we're inlining into. Also removes unnecessary logic special-casing "catch(e)". ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187396431
- Loading branch information
1 parent
b8035a7
commit 5f8d256
Showing
2 changed files
with
83 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters