diff options
| author | Mateusz Poliwczak <mpoliwczak34@gmail.com> | 2026-01-23 09:52:03 +0100 |
|---|---|---|
| committer | Alan Donovan <adonovan@google.com> | 2026-01-26 07:58:30 -0800 |
| commit | f809faeb8e2534da29e980ebd98dfbd4e8a7f4ba (patch) | |
| tree | d2b7616ac1b4b15b2a02fe13b99fbb92d1c9d599 /src/cmd/compile | |
| parent | 1bd5dbfc4110740f2126e0253f429dfe5f3d04ac (diff) | |
| download | go-f809faeb8e2534da29e980ebd98dfbd4e8a7f4ba.tar.xz | |
go/scanner: clear all fields after Scanner reuse
We were missing s.nlPos = token.NoPos in Init, but while we are here
let's make it less likely to hit this it in future.
Change-Id: Ief4c0ba2cf97bc556d901eabc8e172406a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/738680
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/compile')
0 files changed, 0 insertions, 0 deletions
