minirust icon indicating copy to clipboard operation
minirust copied to clipboard

Turn globals into places?

Open RalfJung opened this issue 1 year ago • 0 comments

Currently, a function-local variable is a place expression, but referencing a global works via Constant::GlobalPointer. This seems somewhat inconsistent. On the other hand, we also have Constant::FnPointer, which is nicely consistent with global data pointers (we might even want to merge data and function globals at some point). If we make globals into a place expression, we lose that symmetry between data and function globals.

RalfJung avatar Jun 14 '23 15:06 RalfJung