From fced2744d38bbbcdbc4b780f020b3bfef0abd11f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 13 Jan 2022 17:43:58 +0000 Subject: [PATCH] Fix MSVC "not all control paths return a value" warnings. NFC. --- llvm/lib/TextAPI/Platform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/TextAPI/Platform.cpp b/llvm/lib/TextAPI/Platform.cpp index 728c45cfaa1a..c3c74252301e 100644 --- a/llvm/lib/TextAPI/Platform.cpp +++ b/llvm/lib/TextAPI/Platform.cpp @@ -85,6 +85,7 @@ StringRef getPlatformName(PlatformType Platform) { case PLATFORM_DRIVERKIT: return "DriverKit"; } + llvm_unreachable("Unknown llvm::MachO::PlatformType enum"); } PlatformType getPlatformFromName(StringRef Name) { @@ -128,6 +129,7 @@ std::string getOSAndEnvironmentName(PlatformType Platform, case PLATFORM_DRIVERKIT: return "driverkit" + Version; } + llvm_unreachable("Unknown llvm::MachO::PlatformType enum"); } } // end namespace MachO.