[MemProf] Don't use constexpr via lambda capture due to MSVC issues (NFC)
authorTeresa Johnson <tejohnson@google.com>
Sun, 23 Apr 2023 22:00:18 +0000 (15:00 -0700)
committerTeresa Johnson <tejohnson@google.com>
Sun, 23 Apr 2023 22:03:49 +0000 (15:03 -0700)
commit969268831b9e409dd66af10c12fe17431e09b70f
tree69aebc79e279dbded6e08de0870ea2c7f96d1533
parentbda5f77f9664dc1b7f43bef854d66af161a9a5f0
[MemProf] Don't use constexpr via lambda capture due to MSVC issues (NFC)

Modifies a104e27030587507a711cef0e2b0ddb447fe68fe slightly to switch a
constexpr used via a lambda capture to a const, due to issues with MSVC.
See https://reviews.llvm.org/D140949#inline-1438809 for context.
llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp