Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler: fix bug in importing blocks from inline functions
This patch fixes a buglet in the function body importer. Add hooks for keeping a stack of blocks corresponding to the block nesting in the imported function. This ensures that local variables and temps wind up correctly scoped and don't introduce collisions. New test case for this problem in CL 186717. Fixes golang/go#33158. Change-Id: I5a2bf9bdbc505aa9258b69381e24f21df71d12d1 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/186757 Reviewed-by: Ian Lance Taylor <iant@golang.org>
- Loading branch information
1 parent
19ed722
commit 4df7c8d
Showing
3 changed files
with
37 additions
and
8 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
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