summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-09-05 18:01:04 +0000
committerNico Weber <nicolasweber@gmx.de>2018-09-05 18:01:04 +0000
commit893c646938e906a20d8418f60f15a73257921c05 (patch)
treea202177d0972b13654541a1d0c12e24ab21a499f /llvm/tools
parentf9f7fa9d038001b94441ca77c2719cddebdabd24 (diff)
downloadbcm5719-llvm-893c646938e906a20d8418f60f15a73257921c05.tar.gz
bcm5719-llvm-893c646938e906a20d8418f60f15a73257921c05.zip
Handle zero-length debug directory entries.
Part of https://reviews.llvm.org/D51652 (tests will be in the lld repo) llvm-svn: 341485
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-readobj/COFFDumper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp
index c0579d63dff..4b6125e1a00 100644
--- a/llvm/tools/llvm-readobj/COFFDumper.cpp
+++ b/llvm/tools/llvm-readobj/COFFDumper.cpp
@@ -751,7 +751,7 @@ void COFFDumper::printCOFFDebugDirectory() {
W.printNumber("PDBAge", DebugInfo->PDB70.Age);
W.printString("PDBFileName", PDBFileName);
}
- } else {
+ } else if (D.SizeOfData != 0) {
// FIXME: Type values of 12 and 13 are commonly observed but are not in
// the documented type enum. Figure out what they mean.
ArrayRef<uint8_t> RawData;
OpenPOWER on IntegriCloud