[PATCH] D90345: [DebugInfo] Fix ICE in DwarfCompileUnit::constructSubprogramScopeDIE

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 14:16:42 PDT 2021


dblaikie added a comment.

In D90345#2887719 <https://reviews.llvm.org/D90345#2887719>, @scott.linder wrote:

> Update tests.
>
> I went the route of "upgrading" bitcode which lacks the `type:` field on `DISubprogram`s. It seems like there is currently no difference from LLVM's perspective between `!DISubroutineType(types: !{})` and `!DISubroutineType(types: !{null})`, or at least the difference (or whether the first form should even be valid) is not clear to me.
>
> As an example, DebugTypeInfoRemoval uses `!DISubroutineType(types: !{})` to represent the C type `(void)()`, but the langref would lead one to believe this should be `!DISubroutineType(types: !{null})`.
>
> Does anyone have any thoughts?

I'd lean slightly towards `!{null}` being the representation for a known signature of `void()` - for consistency.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90345/new/

https://reviews.llvm.org/D90345



More information about the llvm-commits mailing list