[llvm] [SROA] Fix debug locations for variables with non-zero offsets (PR #97750)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 03:11:53 PDT 2024
================
@@ -5110,57 +5288,79 @@ bool SROA::splitAlloca(AllocaInst &AI, AllocaSlices &AS) {
NumAllocaPartitions += NumPartitions;
MaxPartitionsPerAlloca.updateMax(NumPartitions);
- // Migrate debug information from the old alloca to the new alloca(s)
- // and the individual partitions.
----------------
OCHyams wrote:
It's repeated at the lambda call site at the end of this function. Happy to re-instate or move it if you still think it's needed here?
https://github.com/llvm/llvm-project/pull/97750
More information about the llvm-commits
mailing list