[all-commits] [llvm/llvm-project] 6f660e: Fix MSVC warning in benchmark (#147357)

Daniel Paoliello via All-commits all-commits at lists.llvm.org
Wed Jul 16 09:39:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f660e269242d51a8d36a9a1f98a2244e8311a1a
      https://github.com/llvm/llvm-project/commit/6f660e269242d51a8d36a9a1f98a2244e8311a1a
  Author: Daniel Paoliello <danpao at microsoft.com>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M third-party/benchmark/src/sysinfo.cc

  Log Message:
  -----------
  Fix MSVC warning in benchmark (#147357)

Building LLVM with MSVC is raising the following warning:

```
llvm\third-party\benchmark\src\sysinfo.cc(375): warning C4062: enumerator 'CacheUnknown' in switch of enum '_PROCESSOR_CACHE_TYPE' is not handled
```

This change resolves the warning by moving the `Unknown` type into a
case block for `CacheUnknown`.

Not sure how this code flows back into the original source.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list