Displaying 2 results from an estimated 2 matches for "r4g_g".
Did you mean:
r4_3
2020 Jan 30
3
Question about ObjectSizeOffsetVisitor::visitGlobalVariable
...0 at 8:14 PM George Burgess IV <
george.burgess.iv at gmail.com> wrote:
> Looks like the commit that added that was
> https://github.com/llvm/llvm-project/commit/16e42128c24f5df8a61cfd2e6cdf3bd3966db0c5
> . A reduced example might look something like this:
> https://godbolt.org/z/r4G_g-
>
> At the C source level, static object size detection has to be similarly
> conservative in the face of 'variable-length' structs like `struct
> my_string { size_t size; char data[0]; };`, though I don't know how
> relevant that is here.
>
> On Tue, Jan 28, 2020...
2020 Jan 29
2
Question about ObjectSizeOffsetVisitor::visitGlobalVariable
In this function (used to check the size of a global) there is an initial
check for whether the initializer to this function is "definitive." My
question is: why do we need this? How does the object's size change if a
global's initializer is defined at link time?
Thanks,
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: