aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-04-07 15:06:13 -0700
committerGitHub <noreply@github.com>2024-04-07 15:06:13 -0700
commit4d1bb7699bfa62ca113dcfabe6da8eae74fe7372 (patch)
treed2e394ecb9e932ee3882b03f5dda04f2fe0280b2 /llvm/lib
parent649523f6f7b67604034a8af5d8ca6830fcd64aab (diff)
downloadllvm-4d1bb7699bfa62ca113dcfabe6da8eae74fe7372.zip
llvm-4d1bb7699bfa62ca113dcfabe6da8eae74fe7372.tar.gz
llvm-4d1bb7699bfa62ca113dcfabe6da8eae74fe7372.tar.bz2
[memprof] Fix a typo in writeMemProfV1 (#87890)
This patch borrows memprof-merge.test to test --memprof-version.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ProfileData/InstrProfWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp
index 72d77d5..1e0159d 100644
--- a/llvm/lib/ProfileData/InstrProfWriter.cpp
+++ b/llvm/lib/ProfileData/InstrProfWriter.cpp
@@ -493,7 +493,7 @@ static Error writeMemProfV1(
llvm::MapVector<GlobalValue::GUID, memprof::IndexedMemProfRecord>
&MemProfRecordData,
llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData) {
- OS.write(memprof::Version0);
+ OS.write(memprof::Version1);
uint64_t HeaderUpdatePos = OS.tell();
OS.write(0ULL); // Reserve space for the memprof record table offset.
OS.write(0ULL); // Reserve space for the memprof frame payload offset.