[clang] [CIR] Allow boolean operands in cir.cmp (PR #206846)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 18:07:45 PDT 2026


https://github.com/andykaylor commented:

This seems OK, but I wonder if it's the right place for the fix. If I perform a comparison with `bool` value, the AST contains a cast to an `int`. I'm curious why that doesn't happen in the enum case. Assuming there's a good reason for that, is representing the enum value as `!cir.bool` the right thing for us to be doing?

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


More information about the cfe-commits mailing list