Closed
Description
Compile the following with -fwrapv-pointer:
struct S { int x,y; };
int *a(struct S *x) { return &x->y; }
Produces getelementptr inbounds nuw %struct.S, ptr %0, i32 0, i32 1
... which seems counter to the premise of -fwrapv-pointer. And seems like it might be a problem with #130742 .