summaryrefslogtreecommitdiff
path: root/lib/Option/Option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Option/Option.cpp')
-rw-r--r--lib/Option/Option.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Option/Option.cpp b/lib/Option/Option.cpp
index 0e2263475e..f1b7941e49 100644
--- a/lib/Option/Option.cpp
+++ b/lib/Option/Option.cpp
@@ -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() << '"';