• Keith Randall's avatar
    cmd/cgo: make sure we FinishType everything · 344d0e0b
    Keith Randall authored
    Ensure that we call FinishType on all the types added to the ptrs map.
    We only add a key to ptrKeys once. Once we FinishType for that key,
    we'll never look at that key again. But we can add a new type under that
    key later, and we'll never finish it.
    
    Make sure we add the key to the ptrKeys list every time we make the list
    of types for that key non-empty.
    
    This makes sure we FinishType each pointer type exactly once.
    
    Fixes #26517
    
    Change-Id: Iad86150d516fcfac167591daf5a26c38bec7d143
    Reviewed-on: https://go-review.googlesource.com/126275Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    344d0e0b
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...