diff --git a/llvm/lib/DebugInfo/PDB/LLVMBuild.txt b/llvm/lib/DebugInfo/PDB/LLVMBuild.txt index 4bd42a2c1590..6cebd787054e 100644 --- a/llvm/lib/DebugInfo/PDB/LLVMBuild.txt +++ b/llvm/lib/DebugInfo/PDB/LLVMBuild.txt @@ -18,5 +18,5 @@ type = Library name = DebugInfoPDB parent = DebugInfo -required_libraries = Object Support DebugInfoCodeView DebugInfoMSF +required_libraries = BinaryFormat Object Support DebugInfoCodeView DebugInfoMSF diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp index 68d386135441..73a28ff37760 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp @@ -104,7 +104,7 @@ loadPdbFile(StringRef PdbPath, std::unique_ptr &Allocator) { if (auto EC = File->parseStreamData()) return std::move(EC); - return File; + return std::move(File); } Error NativeSession::createFromPdbPath(StringRef PdbPath,