diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-10-08 11:47:56 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-10-10 14:27:17 -0700 |
commit | 0f6efd34c21ab6452aa846fd7e59acbccf15fbef (patch) | |
tree | 9db791e2885e9f0500563d39d9575167eb972cc9 /gcc/tree-cfg.cc | |
parent | 1d2f07ed4ce028a7c1f9b18f5d959f30213545ca (diff) | |
download | gcc-0f6efd34c21ab6452aa846fd7e59acbccf15fbef.zip gcc-0f6efd34c21ab6452aa846fd7e59acbccf15fbef.tar.gz gcc-0f6efd34c21ab6452aa846fd7e59acbccf15fbef.tar.bz2 |
compiler: only build thunk struct type when it is needed
Instead of building the thunk struct type in the determine_types pass,
build it when we need it. That ensures that we are consistent in
determining whether an argument is constant.
We no longer need to add a field for a call to recover, as the
simplify_thunk_statements pass runs after the build_recover_thunks pass,
so the additional argument will already have been added to the call.
The test case is https://go.dev/cl/440297.
Fixes golang/go#56109
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/440298
Diffstat (limited to 'gcc/tree-cfg.cc')
0 files changed, 0 insertions, 0 deletions