diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-01-13 17:43:58 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-01-13 17:44:10 +0000 |
commit | fced2744d38bbbcdbc4b780f020b3bfef0abd11f (patch) | |
tree | 0f69deae84b8f215168bc58769a1d697b6b1d8d3 /llvm/lib/TextAPI/Platform.cpp | |
parent | 08212dbc449bbf10652aa735791280266d473076 (diff) | |
download | llvm-fced2744d38bbbcdbc4b780f020b3bfef0abd11f.zip llvm-fced2744d38bbbcdbc4b780f020b3bfef0abd11f.tar.gz llvm-fced2744d38bbbcdbc4b780f020b3bfef0abd11f.tar.bz2 |
Fix MSVC "not all control paths return a value" warnings. NFC.
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
-rw-r--r-- | llvm/lib/TextAPI/Platform.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/TextAPI/Platform.cpp b/llvm/lib/TextAPI/Platform.cpp index 728c45c..c3c7425 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. |