[clang] [BPF] Support preserve_access_index attribute for enum (PR #232498)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 15:47:40 PDT 2026


yonghong-song wrote:

Uploaded a new revision. The main change includes: 
  - add a cast for any implicitly generated __builtin_preserve_enum_value() and this will ensure correct type for comparison.
  - previous revision has a guard HasReducedDebugInfoArg in Sema where for the same code, it may have error with -g, but may not have error without -g. Fixed to be uniform, regardless whether -g or not
  - Add more diagnoses for *invalid* cases.

https://github.com/llvm/llvm-project/pull/232498


More information about the cfe-commits mailing list