diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp index 73a28ff..d12fec9 100644 --- a/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp @@ -173,8 +173,11 @@ NativeSession::searchForPdb(const PdbSearchOptions &Opts) { sys::path::append(PdbPath, PdbName); auto Allocator = std::make_unique<BumpPtrAllocator>(); - if (loadPdbFile(PdbPath, Allocator)) + + if (auto File = loadPdbFile(PdbPath, Allocator)) return std::string(PdbPath); + else + return File.takeError(); return make_error<RawError>("PDB not found"); } |