[SR-7148] Compile-time conditionalization of endianness in the compiler should be done by target checking #49696
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
good first issue
Good for newcomers
Additional Detail from JIRA
md5: 7f26b7e8c0700431c7bacc1871180f85
Issue Description:
IRGen appears to have grown compile-time conditionalizations on host properties, e.g.:
https://github.com/apple/swift/blob/master/lib/IRGen/GenEnum.cpp#L3892
This is not correct if cross-compiling for a target with different endianness than the compiler host. This should check the properties of the target instead of being a #if
The text was updated successfully, but these errors were encountered: