summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-09-01 20:28:59 +0000
committerReid Kleckner <rnk@google.com>2016-09-01 20:28:59 +0000
commitd1882f21881e138e7014afd5a50f575e19993ced (patch)
treeef829ec06d5eec481e4ab0fbc6ae296c48e7d439
parent30fc9a9339de86b098667a8fa9eba6da1f7232d2 (diff)
downloadbcm5719-llvm-d1882f21881e138e7014afd5a50f575e19993ced.tar.gz
bcm5719-llvm-d1882f21881e138e7014afd5a50f575e19993ced.zip
Fix the ASan fuse-lld.cc test after LLD r280012
With that change, images built with 'lld-link /debug' always have a debug directory. If no PDB filename was passed on the command line, then the filename in the executable is empty. PDB information would never work anyway if the PDB file name is empty, so go ahead and try DWARF in that case. llvm-svn: 280410
-rw-r--r--llvm/lib/DebugInfo/Symbolize/Symbolize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
index 31a0086f6fc..1abb368127a 100644
--- a/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
+++ b/llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
@@ -394,7 +394,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
const codeview::DebugInfo *DebugInfo;
StringRef PDBFileName;
auto EC = CoffObject->getDebugPDBInfo(DebugInfo, PDBFileName);
- if (!EC && DebugInfo != nullptr) {
+ if (!EC && DebugInfo != nullptr && !PDBFileName.empty()) {
using namespace pdb;
std::unique_ptr<IPDBSession> Session;
if (auto Err = loadDataForEXE(PDB_ReaderType::DIA,
OpenPOWER on IntegriCloud