forked from OSchip/llvm-project
Fix a crash bug in dumping options with groups
Option groups don't have prefixes. Option dumping is basically dead code unless there is something wrong with the option table, so this isn't an important crasher. llvm-svn: 185031
This commit is contained in:
parent
fc5eb5e264
commit
7b78d359fb
|
@ -50,11 +50,13 @@ void Option::dump() const {
|
|||
#undef P
|
||||
}
|
||||
|
||||
llvm::errs() << " Prefixes:[";
|
||||
for (const char * const *Pre = Info->Prefixes; *Pre != 0; ++Pre) {
|
||||
llvm::errs() << '"' << *Pre << (*(Pre + 1) == 0 ? "\"" : "\", ");
|
||||
if (Info->Prefixes) {
|
||||
llvm::errs() << " Prefixes:[";
|
||||
for (const char * const *Pre = Info->Prefixes; *Pre != 0; ++Pre) {
|
||||
llvm::errs() << '"' << *Pre << (*(Pre + 1) == 0 ? "\"" : "\", ");
|
||||
}
|
||||
llvm::errs() << ']';
|
||||
}
|
||||
llvm::errs() << ']';
|
||||
|
||||
llvm::errs() << " Name:\"" << getName() << '"';
|
||||
|
||||
|
|
Loading…
Reference in New Issue