Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CPU] Aarch64: actually do
reserve-x18
(#19895)
The code was intending to add the `reserve-x18` flag, and it was being executed... but the `hasFlag` method that it was calling wasn't doing that it thought it was. That `hasFlag` method is just a static member that returns `true` if its string argument starts with a `+`. There isn't an actual method on `SubtargetFeatures` to check if we already have a given feature. Anyway, it doesn't matter - in this case, we don't already have the feature, and even if we did, multiply specified features are not a problem. But it really, really matters that we don't accidentally allocate `x18` again :-) Fixes #19873. --------- Signed-off-by: Benoit Jacob <[email protected]>
- Loading branch information