This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Fix for adding "returns cxx udt" option to functions in CodeView.
ClosedPublic

Authored by akhuang on Apr 3 2020, 4:15 PM.

Details

Summary

This change adds DIFlagNonTrivial to forward declarations of
DICompositeType. It adds the flag to nontrivial types and types with
unknown triviality.

It fixes adding the "CxxReturnUdt" flag to functions inconsistently,
since it is added based on whether the return type is marked NonTrivial, and
that changes if the return type was a forward declaration.

continues the discussion at https://reviews.llvm.org/D75215

Bug: https://bugs.llvm.org/show_bug.cgi?id=44785

Diff Detail

Event Timeline

akhuang created this revision.Apr 3 2020, 4:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2020, 4:16 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rnk accepted this revision.Apr 3 2020, 4:52 PM

LGTM!

This revision is now accepted and ready to land.Apr 3 2020, 4:52 PM
This revision was automatically updated to reflect the committed changes.