Skip to content

Commit 12d9485

Browse files
committed
[ctx_prof] Avoid llvm::append_range to fix some build bots
Example: https://lab.llvm.org/buildbot/#/builders/169/builds/3381 The CI allowed the `llvm::append_range` instantiation, but on the other hand it's quite unnecessary here.
1 parent ee5709b commit 12d9485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/PGOCtxProfFlattening.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class ProfileAnnotator final {
246246
continue;
247247
}
248248
if (succ_size(BB) == 1) {
249-
llvm::append_range(Worklist, successors(BB));
249+
Worklist.push_back(BB->getUniqueSuccessor());
250250
continue;
251251
}
252252
const auto &BBInfo = getBBInfo(*BB);

0 commit comments

Comments
 (0)