T-Gruber wrote: Alright, I added a test case which leads to an incorrect index due to the use of getOriginRegion. I also added a FIXME comment to document that this case is not covered currently. https://github.com/llvm/llvm-project/pull/85104