mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
165a7a925d
commit
b0a9ffaeb0
@ -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
Block a user