• Matthew Dempsky's avatar
    cmd/compile: fix method set computation for shadowed methods · 7b177b1a
    Matthew Dempsky authored
    In expandmeth, we call expand1/expand0 to build a list of all
    candidate methods to promote, and then we use dotpath to prune down
    which names actually resolve to a promoted method and how.
    
    However, previously we still computed "followsptr" based on the
    expand1/expand0 traversal (which is depth-first), rather than
    dotpath (which is breadth-first). The result is that we could
    sometimes end up miscomputing whether a particular promoted method
    involves a pointer traversal, which could result in bad code
    generation for method trampolines.
    
    Fixes #24547.
    
    Change-Id: I57dc014466d81c165b05d78b98610dc3765b7a90
    Reviewed-on: https://go-review.googlesource.com/102618Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    7b177b1a
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...