Skip to content

Commit 01a61c8

Browse files
Address a comment.
1 parent 8fe6677 commit 01a61c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/SampleProfileProbe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void PseudoProbeVerifier::verifyProbeFactors(
150150
float CurProbeFactor = I.second;
151151
auto [It, Inserted] = PrevProbeFactors.try_emplace(I.first);
152152
if (!Inserted) {
153-
float PrevProbeFactor = PrevProbeFactors[I.first];
153+
float PrevProbeFactor = It->second;
154154
if (std::abs(CurProbeFactor - PrevProbeFactor) >
155155
DistributionFactorVariance) {
156156
if (!BannerPrinted) {

0 commit comments

Comments
 (0)