================
@@ -2138,6 +2138,22 @@ bool LowerTypeTestsModule::lower() {
       report_fatal_error(
           "unexpected call to llvm.icall.branch.funnel during import phase");
 
+    for (auto &A : llvm::make_early_inc_range(M.aliases())) {
----------------
mtrofin wrote:

because of `A.eraseFromParent()`, which then invalidates the iterator.

https://github.com/llvm/llvm-project/pull/203171
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to