aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/MemProfTest.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-11-24 21:07:59 -0800
committerGitHub <noreply@github.com>2024-11-24 21:07:59 -0800
commit9e3215ac167b80dcf51d6693ecdd6275c4e89954 (patch)
treec66f245906158f526e5e8b176781adfd252e19c5 /llvm/unittests/ProfileData/MemProfTest.cpp
parent87cc4b48c08a627f330396f941b84671c5e591d5 (diff)
downloadllvm-9e3215ac167b80dcf51d6693ecdd6275c4e89954.zip
llvm-9e3215ac167b80dcf51d6693ecdd6275c4e89954.tar.gz
llvm-9e3215ac167b80dcf51d6693ecdd6275c4e89954.tar.bz2
[memprof] Add an assert to InstrProfWriter::addMemProfData (#117426)
This patch adds a quick validity check to InstrProfWriter::addMemProfData. Specifically, we check to see if we have all (or none) of the MemProf profile components (frames, call stacks, records). The credit goes to Teresa Johnson for suggesting this assert.
Diffstat (limited to 'llvm/unittests/ProfileData/MemProfTest.cpp')
0 files changed, 0 insertions, 0 deletions