File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 35
35
#include < cstring>
36
36
#include < type_traits>
37
37
38
- // FIXME: Clang defines max_align_t in stddef.h since 3.6.
39
- // Remove this hack when we don't care about older Clangs on all platforms.
40
- #ifdef __APPLE__
41
- typedef std::max_align_t swift_max_align_t ;
42
- #else
43
- typedef long double swift_max_align_t ;
44
- #endif
45
-
46
38
using namespace swift ;
47
39
using namespace metadataimpl ;
48
40
@@ -2483,7 +2475,7 @@ static bool _dynamicCastClassToValueViaObjCBridgeable(
2483
2475
// Allocate a buffer to store the T? returned by bridging.
2484
2476
// The extra byte is for the tag.
2485
2477
const std::size_t inlineValueSize = 3 * sizeof (void *);
2486
- alignas (swift_max_align_t ) char inlineBuffer[inlineValueSize + 1 ];
2478
+ alignas (std:: max_align_t ) char inlineBuffer[inlineValueSize + 1 ];
2487
2479
void *optDestBuffer;
2488
2480
if (targetType->getValueWitnesses ()->getStride () <= inlineValueSize) {
2489
2481
// Use the inline buffer.
You can’t perform that action at this time.
0 commit comments