From 50c58c0d01c53de21c8fa91ed4489ea13f07d519 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 6 May 2016 21:35:47 +0000 Subject: [PATCH] Fix LLDB after removal of PDB_ErrorCode llvm-svn: 268802 --- lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp index 472999d758aa..4b19b56aa9a1 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp @@ -118,7 +118,7 @@ SymbolFilePDB::CalculateAbilities() // Lazily load and match the PDB file, but only do this once. std::string exePath = m_obj_file->GetFileSpec().GetPath(); auto error = loadDataForEXE(PDB_ReaderType::DIA, llvm::StringRef(exePath), m_session_up); - if (error != PDB_ErrorCode::Success) + if (error) return 0; } return CompileUnits | LineTables;