Skip to content

Commit bfc331e

Browse files
[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]
1 parent c888add commit bfc331e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ SymbolFileNativePDB::CreateClassStructUnion(PdbTypeSymId type_id,
644644

645645
std::string uname = GetUnqualifiedTypeName(record);
646646

647-
llvm::Expected maybeDecl = ResolveUdtDeclaration(type_id);
647+
llvm::Expected<Declaration> maybeDecl = ResolveUdtDeclaration(type_id);
648648
Declaration decl;
649649
if (maybeDecl)
650650
decl = std::move(*maybeDecl);
@@ -674,7 +674,7 @@ lldb::TypeSP SymbolFileNativePDB::CreateTagType(PdbTypeSymId type_id,
674674
CompilerType ct) {
675675
std::string uname = GetUnqualifiedTypeName(er);
676676

677-
llvm::Expected maybeDecl = ResolveUdtDeclaration(type_id);
677+
llvm::Expected<Declaration> maybeDecl = ResolveUdtDeclaration(type_id);
678678
Declaration decl;
679679
if (maybeDecl)
680680
decl = std::move(*maybeDecl);

0 commit comments

Comments
 (0)