This is an archive of the discontinued LLVM Phabricator instance.

Add an IR Verifier check for orphaned DICompileUnits.
ClosedPublic

Authored by aprantl on Mar 28 2016, 11:16 AM.

Details

Summary

Add an IR Verifier check for orphaned DICompileUnits. A DICompileUnit that is not listed in llvm.dbg.cu will cause assertion failures and/or crashes in the backend. The Verifier should reject this.

Diff Detail

Event Timeline

aprantl updated this revision to Diff 51808.Mar 28 2016, 11:16 AM
aprantl retitled this revision from to Add an IR Verifier check for orphaned DICompileUnits..
aprantl updated this object.
aprantl added reviewers: dexonsmith, dblaikie.
aprantl added subscribers: llvm-commits, loladiro.
aprantl updated this revision to Diff 51836.Mar 28 2016, 1:57 PM

Address review comments.

Thanks, committed as r264657 (including a new testcase that my git diff didn't pick up when sending out this review).

aprantl accepted this revision.Mar 28 2016, 2:12 PM
aprantl added a reviewer: aprantl.
This revision is now accepted and ready to land.Mar 28 2016, 2:12 PM
aprantl closed this revision.Mar 28 2016, 2:12 PM