llvm-project
llvm-project copied to clipboard
`CodeExtractor::insertReplacerCall` invalidates use list iterator
https://godbolt.org/z/G5qv35nnq
Referring to an instruction in another function!
%s.sroa.0.0 = phi ptr [ %call.i, %codeRepl ], [ undef, %entry ]
LLVM ERROR: Broken module found, compilation aborted!
Fixed by https://github.com/llvm/llvm-project/pull/197986