forked from OSchip/llvm-project
Fix MSVC "not all control paths return a value" warnings. NFC.
This commit is contained in:
parent
08212dbc44
commit
fced2744d3
|
@ -85,6 +85,7 @@ StringRef getPlatformName(PlatformType Platform) {
|
||||||
case PLATFORM_DRIVERKIT:
|
case PLATFORM_DRIVERKIT:
|
||||||
return "DriverKit";
|
return "DriverKit";
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown llvm::MachO::PlatformType enum");
|
||||||
}
|
}
|
||||||
|
|
||||||
PlatformType getPlatformFromName(StringRef Name) {
|
PlatformType getPlatformFromName(StringRef Name) {
|
||||||
|
@ -128,6 +129,7 @@ std::string getOSAndEnvironmentName(PlatformType Platform,
|
||||||
case PLATFORM_DRIVERKIT:
|
case PLATFORM_DRIVERKIT:
|
||||||
return "driverkit" + Version;
|
return "driverkit" + Version;
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown llvm::MachO::PlatformType enum");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace MachO.
|
} // end namespace MachO.
|
||||||
|
|
Loading…
Reference in New Issue