[Lldb-commits] [lldb] r268802 - Fix LLDB after removal of PDB_ErrorCode

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri May 6 14:35:47 PDT 2016


Author: zturner
Date: Fri May  6 16:35:47 2016
New Revision: 268802

URL: http://llvm.org/viewvc/llvm-project?rev=268802&view=rev
Log:
Fix LLDB after removal of PDB_ErrorCode

Modified:
    lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp?rev=268802&r1=268801&r2=268802&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp Fri May  6 16:35:47 2016
@@ -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;




More information about the lldb-commits mailing list