Skip to content

Commit 51f77e2

Browse files
Address a comment.
1 parent d502cd4 commit 51f77e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ void BlockFrequencyInfoImpl<BT>::setBlockFreq(const BlockT *BB,
11451145
BlockFrequency Freq) {
11461146
auto [It, Inserted] = Nodes.try_emplace(BB);
11471147
if (!Inserted)
1148-
BlockFrequencyInfoImplBase::setBlockFreq(getNode(BB), Freq);
1148+
BlockFrequencyInfoImplBase::setBlockFreq(It->second.first, Freq);
11491149
else {
11501150
// If BB is a newly added block after BFI is done, we need to create a new
11511151
// BlockNode for it assigned with a new index. The index can be determined

0 commit comments

Comments
 (0)