Since we're passing references to dbg.value as pointers, we need to have the frontend properly declare their sizes and alignments (as it already does for regular pointers) in preparation for my upcoming patch to have the verifer check that the sizes agree.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Gut reaction: This would cause extra DWARF to be emitted which might be
erroneous/confusing... (though, as you point out, there's not much of an
argument for being inconsistent with pointers here)
What's the DWARF look like for pointers and references before and after
your patch? (& the usual "what does GCC do?")
Comment Actions
Ah, interesting we skip emitting the size of a pointer in the backend. Will add the same for reference types.
Comment Actions
Add a test case to make sure the backend suppression doesn't get removed without somebody noticing. Does this look ok now?