We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bf1aa commit 9b94869Copy full SHA for 9b94869
llvm/unittests/ProfileData/MemProfTest.cpp
@@ -748,7 +748,7 @@ TEST(MemProf, YAMLParser) {
748
749
// Verify the entire contents of MemProfData.Records.
750
ASSERT_THAT(MemProfData.Records, SizeIs(1));
751
- const auto &[GUID, Record] = *MemProfData.Records.begin();
+ const auto &[GUID, Record] = MemProfData.Records.front();
752
EXPECT_EQ(GUID, 0xdeadbeef12345678ULL);
753
ASSERT_THAT(Record.AllocSites, SizeIs(2));
754
EXPECT_EQ(Record.AllocSites[0].CSId, hashCallStack(CS1));
0 commit comments