[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
commit922282eacfc054ddadbec04825d6573179e66200
authorPiyou Chen <piyou.chen@sifive.com>
Thu, 21 Nov 2024 04:26:30 +0000 (21 12:26 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 04:26:30 +0000 (21 12:26 +0800)
treecdcd8aa0420381e46e14d8033f7df182078b4b57
parenta432f11a52dd5ec21a3438bdaa8f623e32a3234c
[TargetVersion] Only enable on RISC-V and AArch64 (#115991)

Address https://github.com/llvm/llvm-project/issues/115000.

This patch constrains the target_version feature to work only on RISC-V
and AArch64 to prevent crashes in Clang.

---------

Co-authored-by: Aaron Ballman <aaron@aaronballman.com>
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/Attr.td
clang/test/Sema/attr-target-version-unsupported.c [new file with mode: 0644]