[AArch64][FMV] Prevent target attribute using for multiversioning.
authorPavel Iliin <Pavel.Iliin@arm.com>
Thu, 18 May 2023 11:02:04 +0000 (12:02 +0100)
committerPavel Iliin <Pavel.Iliin@arm.com>
Tue, 23 May 2023 16:29:55 +0000 (17:29 +0100)
commitb6db864a2fdf2bcfac62b2c0b71b9ed1cc039c27
tree6b23cd28e2058b54d0af3abf17dff3360ca85afa
parent139392c0a58008b7451e1a1943f5022dc920928b
[AArch64][FMV] Prevent target attribute using for multiversioning.

On AArch64 for function multiversioning target_version/target_clones
attributes should be used. The patch fixes the defect allowing target
attribute to cause multiversioning.

Differential Revision: https://reviews.llvm.org/D150867
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/attr-target-version.c