[llvm] [DebugInfo] getMergedLocation: match scopes based on their location (PR #132286)
Vladislav Dzhidzhoev via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 3 10:23:45 PDT 2025
dzhidzhoev wrote:
> I'll include the changes into this PR.
Done.
> > Let's consider two chains of Scopes:
>
> Yes, I was thinking that this would be possible, and asymmetry isn't something that I believe can otherwise happen in this function
Also, the lexical blocks structure from the counterexample that I provided, IMO, shouldn't pop up in practice. I can hardly imagine for which source code two lexical block chains with swapped blocks will be produced if usually lexical blocks form a tree, and "#include" directives also form a tree. It would be interesting to know about such examples.
https://github.com/llvm/llvm-project/pull/132286
More information about the llvm-commits
mailing list