llvm-readobj: Check for null section pointer

llvm-svn: 180006
This commit is contained in:
Nico Rieck 2013-04-22 08:34:59 +00:00
parent a8de653747
commit a711deef13
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ void COFFDumper::printSymbol(symbol_iterator SymI) {
W.printEnum("Selection", Aux->Selection, makeArrayRef(ImageCOMDATSelect));
W.printBinary("Unused", makeArrayRef(Aux->Unused));
if (Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT
if (Section && Section->Characteristics & COFF::IMAGE_SCN_LNK_COMDAT
&& Aux->Selection == COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
const coff_section *Assoc;
StringRef AssocName;