aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-16 23:24:27 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-16 23:24:27 +0000
commit2dd674fdce68f8fd59d78a3bbab2cf5b8d220290 (patch)
tree8b7a43bbe2df7368233f7c1c688a09632ba12bbd /lib/Support/SourceMgr.cpp
parent17d2dbd5f9dd6c0de86398178f302ef46ba6ec79 (diff)
downloadexternal_llvm-2dd674fdce68f8fd59d78a3bbab2cf5b8d220290.zip
external_llvm-2dd674fdce68f8fd59d78a3bbab2cf5b8d220290.tar.gz
external_llvm-2dd674fdce68f8fd59d78a3bbab2cf5b8d220290.tar.bz2
Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.
(This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SourceMgr.cpp')
-rw-r--r--lib/Support/SourceMgr.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp
index 5a6090d..bbe36b2 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;