[clang-tools-extra] r178212 - Fix a default on covered switch found by -Wcovered-switch-default
David Blaikie
dblaikie at gmail.com
Wed Mar 27 19:30:38 PDT 2013
Author: dblaikie
Date: Wed Mar 27 21:30:37 2013
New Revision: 178212
URL: http://llvm.org/viewvc/llvm-project?rev=178212&view=rev
Log:
Fix a default on covered switch found by -Wcovered-switch-default
Introduced in r178207
Modified:
clang-tools-extra/trunk/modularize/Modularize.cpp
Modified: clang-tools-extra/trunk/modularize/Modularize.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/Modularize.cpp?rev=178212&r1=178211&r2=178212&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/Modularize.cpp (original)
+++ clang-tools-extra/trunk/modularize/Modularize.cpp Wed Mar 27 21:30:37 2013
@@ -233,9 +233,8 @@ StringRef Entry::getKindName(Entry::Kind
case Macro:
return "macro";
break;
- default:
- return "unknown";
}
+ llvm_unreachable("invalid Entry kind");
}
struct HeaderEntry {
More information about the cfe-commits
mailing list