OSDN Git Service

Drop error when trying to fallback from PDB to DWARF.
authorZachary Turner <zturner@google.com>
Fri, 6 May 2016 22:29:34 +0000 (22:29 +0000)
committerZachary Turner <zturner@google.com>
Fri, 6 May 2016 22:29:34 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268813 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/Symbolize/Symbolize.cpp

index 7e5ad32..dbb17a8 100644 (file)
@@ -375,6 +375,10 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
         PDB_ReaderType::DIA, Objects.first->getFileName(), Session);
     if (!Error) {
       Context.reset(new PDBContext(*CoffObject, std::move(Session)));
+    } else {
+      // Drop error
+      handleAllErrors(std::move(Error),
+                      [](const ErrorInfoBase &) { return Error::success(); });
     }
   }
   if (!Context)