Fix MSVC "not all control paths return a value" warnings. NFC.

This commit is contained in:
Simon Pilgrim 2022-01-13 17:43:58 +00:00
parent 08212dbc44
commit fced2744d3
1 changed files with 2 additions and 0 deletions

View File

@ -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.