[Lldb-commits] [lldb] bfc331e - [lldb] Fix warnings

Kazu Hirata via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 13 09:22:38 PDT 2025


Author: Kazu Hirata
Date: 2025-08-13T09:22:25-07:00
New Revision: bfc331e54407085395b45d1bfb9b04833342acdf

URL: https://github.com/llvm/llvm-project/commit/bfc331e54407085395b45d1bfb9b04833342acdf
DIFF: https://github.com/llvm/llvm-project/commit/bfc331e54407085395b45d1bfb9b04833342acdf.diff

LOG: [lldb] Fix warnings

This patch fixes:

  lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:647:3:
  error: 'llvm::Expected' may not intend to support class template
  argument deduction [-Werror,-Wctad-maybe-unsupported]

  lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:677:3:
  error: 'llvm::Expected' may not intend to support class template
  argument deduction [-Werror,-Wctad-maybe-unsupported]

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
index 337052fc6dbd0..108e439317b76 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
@@ -644,7 +644,7 @@ SymbolFileNativePDB::CreateClassStructUnion(PdbTypeSymId type_id,
 
   std::string uname = GetUnqualifiedTypeName(record);
 
-  llvm::Expected maybeDecl = ResolveUdtDeclaration(type_id);
+  llvm::Expected<Declaration> maybeDecl = ResolveUdtDeclaration(type_id);
   Declaration decl;
   if (maybeDecl)
     decl = std::move(*maybeDecl);
@@ -674,7 +674,7 @@ lldb::TypeSP SymbolFileNativePDB::CreateTagType(PdbTypeSymId type_id,
                                                 CompilerType ct) {
   std::string uname = GetUnqualifiedTypeName(er);
 
-  llvm::Expected maybeDecl = ResolveUdtDeclaration(type_id);
+  llvm::Expected<Declaration> maybeDecl = ResolveUdtDeclaration(type_id);
   Declaration decl;
   if (maybeDecl)
     decl = std::move(*maybeDecl);


        


More information about the lldb-commits mailing list