Page MenuHomePhabricator

[NFC][DebugInfo][DWARF] Add test for variables with a single location which doesn't span their entire scope.

Authored by Orlando on Thu, May 7, 6:43 AM.



While working on D79571 I noticed I could change parts of validThroughout
without causing any test failures (*). I'll try to come up with some more tests
if I continue working in this area.

(*) llvm/test/DebugInfo/MIR/AArch64/implicit-def-dead-scope.mir may
fail under similar conditions as one of the checks here, but I don't think it
will catch them both.

Diff Detail

Event Timeline

Orlando created this revision.Thu, May 7, 6:43 AM
aprantl accepted this revision.Thu, May 7, 10:00 AM
aprantl added inline comments.

you don't have to, but you can probably collapse all DILocations in the same scope to one location.

This revision is now accepted and ready to land.Thu, May 7, 10:00 AM
vsk accepted this revision.Thu, May 7, 11:05 AM
Orlando marked an inline comment as done.Mon, May 11, 1:48 AM

Thanks, landing shortly.


No problem, I did this before committing.

This revision was automatically updated to reflect the committed changes.