================
@@ -1873,6 +1873,18 @@ DWARFASTParserClang::ParseStructureLikeDIE(const 
SymbolContext &sc,
     clang_type =
         m_ast.CreateClassTemplateSpecializationType(class_specialization_decl);
 
+    if (!class_specialization_decl) {
+      if (log) {
+        dwarf->GetObjectFile()->GetModule()->LogMessage(
+            log,
+            "SymbolFileDWARF({0:p}) - Specialization for "
+            "clang::ClassTemplateDecl({1:p}) already exists.",
+            static_cast<void *>(this),
+            static_cast<void *>(class_template_decl));
----------------
Michael137 wrote:

I *think* the casts are not needed:
```suggestion
            "SymbolFileDWARF({0:p}) - Specialization for "
            "clang::ClassTemplateDecl({1}, {2:p}) already exists.",
            this, llvm::StringRef(attrs.name), class_template_decl);
```

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

Reply via email to