fix #277, fix #260: fix crash

Fix crash because of parallel access to ssa.Program
This commit is contained in:
Denis Isaev 2018-11-10 15:51:59 +03:00 committed by Isaev Denis
parent 952cc0b22e
commit 898ae4d364
5 changed files with 24 additions and 28 deletions

View file

@ -17,7 +17,8 @@ type Context struct {
LoaderConfig *loader.Config // deprecated, don't use for new linters
Program *loader.Program // deprecated, use Packages for new linters
SSAProgram *ssa.Program
SSAProgram *ssa.Program // for unparam and interfacer: they don't change it
MegacheckSSAProgram *ssa.Program // for megacheck: it modifies ssa program
Cfg *config.Config
ASTCache *astcache.Cache