[clang] [C] Handle comma operator for implicit int->enum conversions (PR #138752)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 14:25:49 PDT 2025
================
@@ -12464,7 +12487,7 @@ static void AnalyzeImplicitConversions(
<< OrigE->getSourceRange() << T->isBooleanType()
<< FixItHint::CreateReplacement(UO->getBeginLoc(), "!");
- if (const auto *BO = dyn_cast<BinaryOperator>(SourceExpr))
+ if (auto *BO = dyn_cast<BinaryOperator>(SourceExpr))
----------------
erichkeane wrote:
Why do we lose `const` here?
https://github.com/llvm/llvm-project/pull/138752
More information about the cfe-commits
mailing list