Skip to content

Commit d89a524

Browse files
authored
Merge pull request #40865 from etcwilde/ewilde/remove-constexpr-if
Remove constexpr-if from runtime
2 parents b9cc26b + d452f68 commit d89a524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Runtime/Concurrent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ struct ConcurrentReadableHashMap {
881881
auto *newElements = ElementStorage::allocate(newCapacity);
882882

883883
if (elements) {
884-
if constexpr (std::is_trivially_copyable<ElemTy>::value) {
884+
if (std::is_trivially_copyable<ElemTy>::value) {
885885
memcpy(newElements->data(), elements->data(),
886886
elementCount * sizeof(ElemTy));
887887
} else {

0 commit comments

Comments
 (0)