[NFCI] Clean up idempotent stack pop for inline context (#141544)

In the top-of-tree, the stack pops at L414-416 [1] are no-op since there
are prior stack pops at L400-402.

[1]
e015626f18/llvm/lib/ProfileData/SampleProfReader.cpp (L414-L416)
[2]
e015626f18/llvm/lib/ProfileData/SampleProfReader.cpp (L400-L402)
This commit is contained in:
Mingming Liu
2025-05-27 09:41:54 -07:00
committed by GitHub
parent 15c3adee9f
commit eb79e340a1

View File

@@ -411,9 +411,6 @@ std::error_code SampleProfileReaderText::readImpl() {
break;
}
case LineType::BodyProfile: {
while (InlineStack.size() > Depth) {
InlineStack.pop_back();
}
FunctionSamples &FProfile = *InlineStack.back();
for (const auto &name_count : TargetCountMap) {
mergeSampleProfErrors(Result, FProfile.addCalledTargetSamples(