r177656 - Avoid warnings from compilers that think you can drop off the end of a fully covered switch.
Benjamin Kramer
benny.kra at googlemail.com
Thu Mar 21 12:45:47 PDT 2013
Author: d0k
Date: Thu Mar 21 14:45:46 2013
New Revision: 177656
URL: http://llvm.org/viewvc/llvm-project?rev=177656&view=rev
Log:
Avoid warnings from compilers that think you can drop off the end of a fully covered switch.
Modified:
cfe/trunk/lib/Driver/ToolChain.cpp
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=177656&r1=177655&r2=177656&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Thu Mar 21 14:45:46 2013
@@ -113,6 +113,8 @@ Tool *ToolChain::getTool(Action::ActionC
case Action::MigrateJobClass:
return getClang();
}
+
+ llvm_unreachable("Invalid tool kind.");
}
Tool &ToolChain::SelectTool(const JobAction &JA) const {
More information about the cfe-commits
mailing list