Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/analysis/passes/sigchanyzer: copy to avoid modifying the AST
The sigchanyzer pass suggests fixes, but it does that by altering the channel declaration argument. That causes the buildssa.Analyzer fail to fail, along with crashing other passes that depend on it. To fix this, we make a copy of the channel's declaration arguments, and modify the copy instead. Fixes golang/go#46129 Change-Id: I807d36abd49cd3ccc2cc9f907aa98349b2e3231f Reviewed-on: https://go-review.googlesource.com/c/tools/+/319211 Reviewed-by: Emmanuel Odeke <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Run-TryBot: Emmanuel Odeke <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Cuong Manh Le <[email protected]>
- Loading branch information