8000 Fix repeated callee handling in IsTrivial by dajiaohuang · Pull Request #1831 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Fix repeated callee handling in IsTrivial - #1831

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/is-trivial-shared-callee
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/is-trivial-shared-callee

Conversation

@dajiaohuang
8000
Copy link
Copy Markdown

IsTrivial used its seen map as both a recursion detector and a permanent visited set. A trivial callee reached through one branch remained in the set, so another branch calling that same callee was misclassified as recursive. Keep seen scoped to the active call path by removing each function when its recursive check returns. Static call-graph review and git diff --check only; tests were not run per audit instructions.

@dajiaohuang
Copy link
Copy Markdown
Author

Closing this duplicate after comparing the current patches. The same defect and fix are already covered by #1795. Keeping the existing contribution avoids competing review threads; the contributor branches remain preserved.

@dajiaohuang dajiaohuang closed this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0