Skip to content

Missing workaround for old glibc __PTR_ALIGN macro #137833

Closed
@dtcxzyw

Description

@dtcxzyw

See also #130742 (comment).

Do not set inbounds flag on GEPs for the following pattern:

((sizeof(long int) < sizeof(void *) ? (base) : (char *)0) +
   (((pointer) - (sizeof(long int) < sizeof(void *) ? (base) : (char *)0) +
     (align_mask)) &
    ~(align_mask)));
  1. Handle the pointer addition case (char *0) + idx
  2. Handle expr ((sizeof(long int) < sizeof(void *) ? (base) : (char *)0) in isUnderlyingBasePointerConstantNull.

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions