Work around buggy sequence points #11
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/contract-coverage-primer#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It seems there is a bug in the compiler currently. After optimization and offset recalculation, some sequence points do not correspond to any valid offset.
One of the ways to partially solve a problem is to not only remember instruction offset, but also instruction length. This way some +-1 errors in offset should be solved (and because of the nature of compiler optimizations we know that sequence points preserve their order, so this should work).