This is an archive of the discontinued LLVM Phabricator instance.

Fix an assert when mixing -g and -gmlt in LTO
ClosedPublic

Authored by probinson on Feb 1 2017, 3:15 PM.

Details

Summary

This is the other half of PR31437, split off from D29310.

Remove an assertion that doesn't hold when mixing -g and -gmlt compilation
units. Replace it with a morally equivalent assertion.

Diff Detail

Repository
rL LLVM

Event Timeline

probinson created this revision.Feb 1 2017, 3:15 PM
dblaikie accepted this revision.Feb 1 2017, 3:30 PM

Not sure if the new assert is 'equivalent' (but as you & my past self (in that comment) say, the old one was wrong... so)

Looks good - thanks for working up the test cases & investigation!

This revision is now accepted and ready to land.Feb 1 2017, 3:30 PM

I'll call it "related" in the commit log. The common idea is that new abstract variables should not appear in the absence of an abstract scope.
Thanks!

This revision was automatically updated to reflect the committed changes.