This is an archive of the discontinued LLVM Phabricator instance.

Visit previously unreachable nodes in the debug info metadata verifier.
ClosedPublic

Authored by aprantl on Feb 26 2020, 2:16 PM.

Details

Summary

This allows for diagnosing malformed LLVM IR debug info metadata such as the one in the testcase.
rdar://problem/59756060

Diff Detail

Event Timeline

aprantl created this revision.Feb 26 2020, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2020, 2:16 PM
vsk accepted this revision.Feb 26 2020, 2:35 PM

LGTM

llvm/test/Verifier/llvm.loop.cu.ll
22

Yeah, correct IR here would be scope: !6, I suppose that's why the duplicate DICompileUnit hangs around.

This revision is now accepted and ready to land.Feb 26 2020, 2:35 PM
This revision was automatically updated to reflect the committed changes.