================
@@ -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())
----------------
erichkeane wrote:

```suggestion
  else if (const auto *ECD = this->getEnumConstantDecl())
```

https://github.com/llvm/llvm-project/pull/81418
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to