Fix -Wcovered-switch-default warning. NFCI.

llvm-svn: 348486
This commit is contained in:
Simon Pilgrim 2018-12-06 14:02:02 +00:00
parent 26f01c46e9
commit 948ce4e6ed
1 changed files with 1 additions and 3 deletions

View File

@ -333,6 +333,7 @@ std::vector<CPUInfo::CacheInfo> GetCacheSizesWindows() {
C.num_sharing = static_cast<int>(B.count());
C.level = Cache->Level;
C.size = Cache->Size;
C.type = "Unknown";
switch (Cache->Type) {
case CacheUnified:
C.type = "Unified";
@ -346,9 +347,6 @@ std::vector<CPUInfo::CacheInfo> GetCacheSizesWindows() {
case CacheTrace:
C.type = "Trace";
break;
default:
C.type = "Unknown";
break;
}
res.push_back(C);
}