[MemProf] Fix buildbot error due to hasValue deprecation warning
authorTeresa Johnson <tejohnson@google.com>
Thu, 22 Sep 2022 20:26:53 +0000 (13:26 -0700)
committerTeresa Johnson <tejohnson@google.com>
Thu, 22 Sep 2022 20:26:53 +0000 (13:26 -0700)
commit37c6a25e9ab230e5e21fa34e246d9fec55275df0
tree92f5d0b15bcefcdc55c0e7f5ec9d85635b056779
parente9ff53d42feac7fc157718523275619a8106f2f3
[MemProf] Fix buildbot error due to hasValue deprecation warning

Use has_value instead of hasValue to address a deprecation warning from
a212d8da94d08e229aa8d65283e4b116310bba10. E.g.:

https://lab.llvm.org/buildbot/#/builders/57/builds/22166/steps/5/logs/stdio
llvm/lib/Analysis/MemoryBuiltins.cpp