diff options
Diffstat (limited to 'third-party/benchmark/src')
-rw-r--r-- | third-party/benchmark/src/sysinfo.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/third-party/benchmark/src/sysinfo.cc b/third-party/benchmark/src/sysinfo.cc index c1969ea..112e9b4 100644 --- a/third-party/benchmark/src/sysinfo.cc +++ b/third-party/benchmark/src/sysinfo.cc @@ -344,6 +344,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"; @@ -357,9 +358,6 @@ std::vector<CPUInfo::CacheInfo> GetCacheSizesWindows() { case CacheTrace: C.type = "Trace"; break; - default: - C.type = "Unknown"; - break; } res.push_back(C); } |