[compiler-rt] [compiler-rt] fix gcc 12 support by removing enum-type-specifier (PR #165034)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 13:51:41 PDT 2025


compnerd wrote:

> Thanks @yuxuanchen1997 for pointing out that using typed enums is c23, I missed that.
> 
> My goal with introducing the enum was to prevent errors like the one I fixed in the PR with CWF. I think we could keep the enum as an argument type, revert to unsigned int in the struct, and cast when calling the function. Would that be okay?

Yeah, that would be fine. I don't have a strong opinion between the two as long as the ABI is not changed.

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


More information about the llvm-commits mailing list