Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MC] Don't treat altentry symbols as atoms
The current `setAtom` is inaccurate: a `.alt_entry` label can also be recognized as an atom. This is mostly benign, but might cause two locations only separated by an `.alt_entry` to have different atoms. https://reviews.llvm.org/D153167 changed a `evaluateKnownAbsolute` to `evaluateAsAbsolute` and would not fold `A-B` even if they are only separated by a `.alt_entry` label, leading to a spurious error `invalid CFI advance_loc expression`. The fix is similar to llvm#82268: add a special case for `.alt_entry`. Fix llvm#97116 Pull Request: llvm#97479
- Loading branch information