[compiler-rt] [compiler-rt] fix gcc 12 support by removing enum-type-specifier (PR #165034)
    Mikołaj Piróg via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Oct 24 13:47:39 PDT 2025
    
    
  
mikolaj-pirog 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?
https://github.com/llvm/llvm-project/pull/165034
    
    
More information about the llvm-commits
mailing list