mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is consistent with `Type.isTrivial`. Also, introduce corresponding properties in `Value`: `hasTrivialType` and `hasTrivialNonPointerType`, because 1. It's less to type than `Type.isTrivial(in: function)` because `Value` knows in which function it is. 2. It fixes the corner case where value is an `Undef`, which has not parent function.
10 KiB
10 KiB