[clang] [BPF] Support preserve_access_index attribute for enum (PR #232498)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 7 20:05:32 PST 2026
================
@@ -2067,3 +2067,6 @@ def UnguardedBuiltinUsageAMDGPU : DiagGroup<"amdgpu-unguarded-builtin-usage">;
def AvailableVisibleAMDGPU : DiagGroup<"amdgpu-av">;
def DynamicDebugging : DiagGroup<"dynamic-debugging">;
+
+def BPFPreserveAccessIndexEnumerator
+ : DiagGroup<"bpf-preserve-access-index-enumerator">;
----------------
4ast wrote:
imo it's too verbose for a flag that goes into Makefiles and libbpf headers. It names the attribute and not the problem.
Maybe `-Wbpf-enum-not-relocated` ?
https://github.com/llvm/llvm-project/pull/232498
More information about the cfe-commits
mailing list