Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOL] Inform stack size in error message #100

Merged

Conversation

LucasSte
Copy link
Collaborator

Problem

The error message when a function accesses an offset greater than allowed does not inform the function frame size, hindering debugging. It only shows one of the accessed offsets, which is not necessarily the greatest one.

Solution

Inform the estimated frame size for that function.

@LucasSte LucasSte changed the title Inform stack size in error message [SOL] Inform stack size in error message Jun 28, 2024
@LucasSte LucasSte marked this pull request as ready for review July 1, 2024 13:57
@LucasSte LucasSte requested a review from dmakarov July 1, 2024 13:57
@LucasSte LucasSte merged commit 8bc30e8 into anza-xyz:solana-rustc/17.0-2023-12-14 Jul 2, 2024
14 checks passed
@LucasSte LucasSte deleted the inform-size branch July 2, 2024 13:04
LucasSte added a commit to LucasSte/llvm-project that referenced this pull request Jul 4, 2024
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.

2 participants