mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 04:26:37 +00:00

When AggressiveInstCombine replaces a memchr with a switch instruction, it currently drops the DILocation for that memchr. This patch changes this, propagating the memchr DILocation to all the generated instructions that replace it. Found using https://github.com/llvm/llvm-project/pull/107279.