[PATCH] D70524: Support DebugInfo generation for auto return type for C++ functions.
Paul Robinson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 17 10:44:29 PST 2019
probinson added a comment.
> "DW_TAG_unspecified_type auto" should be emitted for the function declared/defined as auto returnning. Do you have other test cases in mind, where above points diverges ??
The declaration would have DW_AT_type point to DW_TAG_unspecified_type, but the definition should have DW_AT_type use the actual type (which is now known, because you have the definition). The "actual type" might be "void", in which case the definition would omit DW_AT_type, just like a normal (non-auto) function that returns void.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70524/new/
https://reviews.llvm.org/D70524
More information about the cfe-commits
mailing list