[all-commits] [llvm/llvm-project] d5e13b: [CAS] Fix UnifiedOnDiskCacheTest build with MSVC 2...

Steven Wu via All-commits all-commits at lists.llvm.org
Tue Sep 29 13:31:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5e13b1b0caf2aa552811e81208403e2f09bc613
      https://github.com/llvm/llvm-project/commit/d5e13b1b0caf2aa552811e81208403e2f09bc613
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/unittests/CAS/UnifiedOnDiskCacheTest.cpp

  Log Message:
  -----------
  [CAS] Fix UnifiedOnDiskCacheTest build with MSVC 2019 (#227453)

MSVC 2019 (14.29.30133) rejects the local constexpr NumTasks as an
array bound inside the by-reference-capturing runConcurrently lambda
("failure was caused by a read of a variable outside its lifetime").
Make it static constexpr so it is not captured.

Fixes: https://lab.llvm.org/buildbot/#/builders/46/builds/42070



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