r320297 - Fix MSVC 'not all control paths return a value' warning

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 10 03:05:14 PST 2017


Author: rksimon
Date: Sun Dec 10 03:05:14 2017
New Revision: 320297

URL: http://llvm.org/viewvc/llvm-project?rev=320297&view=rev
Log:
Fix MSVC 'not all control paths return a value' warning

Modified:
    cfe/trunk/lib/Driver/ToolChains/Darwin.cpp

Modified: cfe/trunk/lib/Driver/ToolChains/Darwin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Darwin.cpp?rev=320297&r1=320296&r2=320297&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Darwin.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Darwin.cpp Sun Dec 10 03:05:14 2017
@@ -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,




More information about the cfe-commits mailing list