Closed aeubanks closed 1 year ago
I looked at this for a bit then got side-tracked; it is indeed similar to #53937, with the same root cause, the optimisation level turns out to be a poor indicator for which flavour of variable locations we generated the function with. A quick attempt to hack around it didn't work; I suspect the correct way forwards is to add a MachineFunction flag recording what flavour of debug-info we have. This is slightly unfortunate, but robust.
(Now getting time address this)
Landed in 9f8544713ad8e57fb74cbfce3fbc7fff523e549f
looks similar to https://github.com/llvm/llvm-project/issues/53937 @OCHyams @jmorse