mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The behavior of std::minmax with rvalue arguments is undefined after the end of the expression that contains the call to minmax. This code to special-case the comparisons for ARM vs. Thumb and macOS vs. Darwin was a little overly clever anyway. Rewrite it to use straightforward comparisons. This fixes a test failure in Serialization/target-incompatible.swift when building with a recent version of clang, because these checks were completely optimized away due to the undefined behavior. rdar://problem/28700005
53 KiB
53 KiB