We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e74a4e + 638b89d commit bd5e7c4Copy full SHA for bd5e7c4
stdlib/public/runtime/Casting.cpp
@@ -41,6 +41,7 @@
41
#include "SwiftValue.h"
42
#endif
43
44
+#include <cstddef>
45
#include <cstring>
46
#include <type_traits>
47
@@ -2667,7 +2668,7 @@ static bool _dynamicCastClassToValueViaObjCBridgeable(
2667
2668
// Allocate a buffer to store the T? returned by bridging.
2669
// The extra byte is for the tag.
2670
const std::size_t inlineValueSize = 3 * sizeof(void*);
- alignas(max_align_t) char inlineBuffer[inlineValueSize + 1];
2671
+ alignas(std::max_align_t) char inlineBuffer[inlineValueSize + 1];
2672
void *optDestBuffer;
2673
if (targetType->getValueWitnesses()->getStride() <= inlineValueSize) {
2674
// Use the inline buffer.
0 commit comments