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 3146d57 commit 141b959Copy full SHA for 141b959
llvm/unittests/ProfileData/MemProfTest.cpp
@@ -747,7 +747,7 @@ TEST(MemProf, YAMLParser) {
747
748
// Verify the entire contents of MemProfData.Records.
749
ASSERT_THAT(MemProfData.Records, SizeIs(1));
750
- const auto &[GUID, Record] = *MemProfData.Records.begin();
+ const auto &[GUID, Record] = MemProfData.Records.front();
751
EXPECT_EQ(GUID, 0xdeadbeef12345678ULL);
752
ASSERT_THAT(Record.AllocSites, SizeIs(2));
753
EXPECT_EQ(Record.AllocSites[0].CSId, hashCallStack(CS1));
0 commit comments