================
@@ -140,10 +140,9 @@ class ItaniumMangleContextImpl : public 
ItaniumMangleContext {
       return false;
 
     // Anonymous tags are already numbered.
-    if (const TagDecl *Tag = dyn_cast<TagDecl>(ND)) {
-      if (Tag->getName().empty() && !Tag->getTypedefNameForAnonDecl())
-        return false;
-    }
+    if (const TagDecl *Tag = dyn_cast<TagDecl>(ND);
+        Tag && Tag->getName().empty() && !Tag->getTypedefNameForAnonDecl())
----------------
tbaederr wrote:

```suggestion
    if (const auto *Tag = dyn_cast<TagDecl>(ND);
        Tag && Tag->getName().empty() && !Tag->getTypedefNameForAnonDecl())
```

https://github.com/llvm/llvm-project/pull/183027
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to