Skip to content

Commit 5d54d13

Browse files
authored
Merge pull request #12453 from dcci/unused-closure
2 parents bc94cba + 840ff10 commit 5d54d13

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/SILGen/SILGenProfiling.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -911,11 +911,10 @@ void SILGenProfiling::assignRegionCounters(Decl *Root) {
911911
auto LoadedCounts =
912912
SGM.PGOReader->getInstrProfRecord(PGOFuncName, FunctionHash);
913913
if (auto E = LoadedCounts.takeError()) {
914-
llvm::handleAllErrors(std::move(E),
915-
[&E](const llvm::InstrProfError &Err) {
916-
Err.log(llvm::dbgs());
917-
return;
918-
});
914+
llvm::handleAllErrors(std::move(E), [](const llvm::InstrProfError &Err) {
915+
Err.log(llvm::dbgs());
916+
return;
917+
});
919918
llvm::dbgs() << PGOFuncName << "\n";
920919
return;
921920
}

0 commit comments

Comments
 (0)