[clang] [clang][CIR] Convert fixed-point values to bool enums like bool (PR #245930)
Sendao Yan via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 27 03:54:55 PST 2026
sendaoYan wrote:
> Thanks, the CIR side looks good. One thing outside the diff: classic CodeGen still has its own `hasBoolConversionSemantics()` (`clang/lib/CodeGen/CGExprScalar.cpp:182`). I'd prefer switching it to `Type::hasBooleanConversionSemantics()` here so there's one helper from the start. If you'd rather do it as the follow-up TPPPP72 suggested, please say so and I'm fine with that.
Done — classic CodeGen now calls `Type::hasBooleanConversionSemantics()` and the local helper is gone.
https://github.com/llvm/llvm-project/pull/245930
More information about the cfe-commits
mailing list