Michael137 added a comment. I suppose I could just make ForEach return a boolean instead of breaking. Could then re-use that Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139083/new/ https://reviews.llvm.org/D139083