You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes a crash that occurred when attempting to cast an SOA (slice)
pointer to a non-SOA pointer type. The crash happened with "Illegal BitCast"
LLVM assertion during code generation.
1. Update lDeconstifyType() helper with proper propagation of slice property.
2. **Error check in TypeCastExpr::TypeCheck**: Added validation to detect and
reject casts from slice pointers to non-slice pointers. Without this check,
even with preserved slice information, the invalid cast would proceed to code
generation and crash in LLVM.
The fix prevents data corruption by disallowing casts that would discard the
slice offset information (which tracks which lane within the SOA structure is
being accessed).
Fixes#3591
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments