[PATCH] D105494: [clang] Introduce a union inside ProgramPoint.

Simon Tatham via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 6 09:27:21 PDT 2021


simon_tatham created this revision.
simon_tatham added reviewers: rsmith, lebedev.ri, akyrtzi.
simon_tatham requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This is part of a patch series working towards the ability to make
SourceLocation into a 64-bit type to handle larger translation units.

The `void *Data1` field in ProgramPoint is sometimes used to store a
SourceLocation in pointer encoding, and sometimes used to store other
pointer data. If SourceLocation becomes 64-bit when clang is compiled
for a 32-bit platform, then this won't fit any more. Hence, we change
the type of `Data1` to a union storing either an actual SourceLocation
or a pointer.

Patch originally by Mikhail Maltsev.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105494

Files:
  clang/include/clang/Analysis/ProgramPoint.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105494.356759.patch
Type: text/x-patch
Size: 7819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210706/293fe1e4/attachment.bin>


More information about the cfe-commits mailing list