[PATCH] D39112: [CodeExtractor] Fix iterator invalidation in findOrCreateBlockForHoisting.
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 09:41:34 PDT 2017
davidxl accepted this revision.
davidxl added a comment.
This revision is now accepted and ready to land.
lgtm
================
Comment at: lib/Transforms/Utils/CodeExtractor.cpp:312
+ PI != PE;) {
+ BasicBlock *Pred = *PI++;
if (Blocks.count(Pred))
----------------
Move ++ into the for clause?
https://reviews.llvm.org/D39112
More information about the llvm-commits
mailing list