[PATCH] D103181: [SimplifyCFG] Don't use phis() while deleting instructions
    Roman Lebedev via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed May 26 10:00:43 PDT 2021
    
    
  
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:4503
     Instruction *InsertPt = DestEHPad;
-    for (PHINode &PN : BB->phis()) {
       // The iterator must be incremented here because the instructions are
----------------
Use `make_early_inc_range()`?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103181/new/
https://reviews.llvm.org/D103181
    
    
More information about the llvm-commits
mailing list