Without opaque pointers, this code determined !heapallocsite based on the innermost cast of the allocation call. With opaque pointers, the casts no longer generate an instruction, so the outermost cast is used. Add an explicit check for nested casts to prevent this.
Details
Details
Summary
Diff Detail
Diff Detail
Event Timeline
This revision is now accepted and ready to land.May 8 2023, 4:17 PM
Closed by commit rGcac4d7ff4652: [CodeGen] Only consider innermost cast for !heapallocsite (authored by nikic). · Explain WhyMay 9 2023, 12:49 AM
This revision was automatically updated to reflect the committed changes.