diff options
Diffstat (limited to 'llvm/unittests/ProfileData/MemProfTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/MemProfTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ProfileData/MemProfTest.cpp b/llvm/unittests/ProfileData/MemProfTest.cpp index 5886d3e..c1b8f24 100644 --- a/llvm/unittests/ProfileData/MemProfTest.cpp +++ b/llvm/unittests/ProfileData/MemProfTest.cpp @@ -748,7 +748,7 @@ HeapProfileRecords: // Verify the entire contents of MemProfData.Records. ASSERT_THAT(MemProfData.Records, SizeIs(1)); - const auto &[GUID, Record] = *MemProfData.Records.begin(); + const auto &[GUID, Record] = MemProfData.Records.front(); EXPECT_EQ(GUID, 0xdeadbeef12345678ULL); ASSERT_THAT(Record.AllocSites, SizeIs(2)); EXPECT_EQ(Record.AllocSites[0].CSId, hashCallStack(CS1)); |