llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

`CodeExtractor::insertReplacerCall` invalidates use list iterator

Open mustartt opened this issue 6 months ago • 1 comments

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!

mustartt avatar May 15 '26 17:05 mustartt

Fixed by https://github.com/llvm/llvm-project/pull/197986

mustartt avatar May 21 '26 16:05 mustartt