swift
1258563c - IRGen: Large types reg2mem - Fix visitUncheckedTrivialBitCastInst

Commit
1 year ago
IRGen: Large types reg2mem - Fix visitUncheckedTrivialBitCastInst An unchecked_trivial_bit_cast can go from a bigger type to a smaller type. Therefore we must allocate stack storage for the operand type rather than the result type. Otherwise, we can end up storing bigger values into smaller storage -- not good. rdar://128086028
Author
Committer
Parents
Loading