[clang] [llvm] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 11:47:08 PDT 2024
================
@@ -6886,6 +6886,13 @@ static void checkAttributesAfterMerging(Sema &S, NamedDecl &ND) {
}
}
+ if (HybridPatchableAttr *Attr = ND.getAttr<HybridPatchableAttr>()) {
+ if (!ND.isExternallyVisible()) {
+ S.Diag(Attr->getLocation(),
+ diag::warn_attribute_hybrid_patchable_non_extern);
+ ND.dropAttr<SelectAnyAttr>();
----------------
efriedma-quic wrote:
```suggestion
ND.dropAttr<HybridPatchableAttr>();
```
https://github.com/llvm/llvm-project/pull/99478
More information about the llvm-commits
mailing list