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;


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to