summaryrefslogtreecommitdiffstats
path: root/lib/Driver/ToolChains/Darwin.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-12-10 11:05:14 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-12-10 11:05:14 +0000
commit4fa9f7479264f30a04618e1c789abe683915e733 (patch)
treee0c5ffdde27ff9fced93798172b4721631c93a05 /lib/Driver/ToolChains/Darwin.cpp
parentf7a3add6d1392c35ddd42929924d1121b268da6c (diff)
Fix MSVC 'not all control paths return a value' warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/Darwin.cpp')
-rw-r--r--lib/Driver/ToolChains/Darwin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains/Darwin.cpp b/lib/Driver/ToolChains/Darwin.cpp
index f4ed52838d..28efa86538 100644
--- a/lib/Driver/ToolChains/Darwin.cpp
+++ b/lib/Driver/ToolChains/Darwin.cpp
@@ -1230,6 +1230,7 @@ struct DarwinPlatform {
case DeploymentTargetEnv:
return (llvm::Twine(EnvVarName) + "=" + OSVersion).str();
}
+ llvm_unreachable("Unsupported Darwin Source Kind");
}
static DarwinPlatform createOSVersionArg(DarwinPlatformKind Platform,