Repository navigation
[AUTOMATED] Give the weak-relocation warnings a kind in the JSON record - #1609
Merged
Merged
Conversation
The two warnings a relocatable object's unmodeled weak reference prints
("Nullable weak code relocation could not be modeled", "Nullable weak
relocation operand could not be modeled") reached a function's JSON
`warnings` list as kind `other`. They are now `weak-relocation`.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_0179iMKQeLQDThvbHGNoGw8h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A relocatable object's unmodeled weak reference prints a warning, and the function's JSON record lists it with the catch-all kind:
With this change the kind is
weak-relocation, for both warnings the weak-relocation pass prints ("…code relocation could not be modeled" and "…relocation operand could not be modeled"). The message, line and address are unchanged, and no C output changes.The warnings come from #1599 and the
warningslist from #1601; the kind table inkuna_functionwarningswas written before the warnings existed.Tests: a unit case for each message in
kuna_functionwarnings, andnullable_relocations::unmatched_weak_operands_report_the_missing_modelnow checks the JSON kind.docs/cli.mdlists the new kind.🤖 Generated with Claude Code
https://claude.ai/code/session_0179iMKQeLQDThvbHGNoGw8h