diff options
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CommandLine.cpp | 6 | ||||
-rw-r--r-- | lib/Support/SourceMgr.cpp | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index ce9344954b..d1f9fad8dd 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -292,12 +292,6 @@ static inline bool ProvideOption(Option *Handler, StringRef ArgName, break; case ValueOptional: break; - - default: - errs() << ProgramName - << ": Bad ValueMask flag! CommandLine usage error:" - << Handler->getValueExpectedFlag() << "\n"; - llvm_unreachable(0); } // If this isn't a multi-arg option, just run the handler. diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp index 5a6090d05e..bbe36b260b 100644 --- a/lib/Support/SourceMgr.cpp +++ b/lib/Support/SourceMgr.cpp @@ -244,7 +244,6 @@ void SMDiagnostic::print(const char *ProgName, raw_ostream &S) const { } switch (Kind) { - default: assert(0 && "Unknown diagnostic kind"); case SourceMgr::DK_Error: S << "error: "; break; case SourceMgr::DK_Warning: S << "warning: "; break; case SourceMgr::DK_Note: S << "note: "; break; |