Skip to content

Commit 21470a9

Browse files
Update llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Co-authored-by: Nikita Popov <[email protected]>
1 parent 1496bc6 commit 21470a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ void PGOUseFunc::populateCoverage(IndexedInstrProfReader *PGOReader) {
15641564
// successors, e.g., when a block calls a function that may call exit(). In
15651565
// those cases, BFI could find its successor to be covered while BCI could
15661566
// find its successor to be dead.
1567-
auto &Cov = Coverage[&BB];
1567+
const bool &Cov = Coverage[&BB];
15681568
if (Cov == IsBlockDead(BB).value_or(false)) {
15691569
LLVM_DEBUG(
15701570
dbgs() << "Found inconsistent block covearge for " << BB.getName()

0 commit comments

Comments
 (0)