[clang] [Clang][Sema] Fix missing warning when comparing mismatched enums in … (PR #81418)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 23 13:12:06 PST 2024
================
@@ -263,6 +263,14 @@ namespace {
}
}
+QualType Expr::getEnumCoercedType(const ASTContext &Ctx) const {
+ if (isa<EnumType>(this->getType()))
+ return this->getType();
+ else if (const EnumConstantDecl *ECD = this->getEnumConstantDecl())
----------------
Kupa-Martin wrote:
done
https://github.com/llvm/llvm-project/pull/81418
More information about the cfe-commits
mailing list