diff --git a/stdlib/public/runtime/Casting.cpp b/stdlib/public/runtime/Casting.cpp index 5be857d5fd7e2..0b58d4984a4b0 100644 --- a/stdlib/public/runtime/Casting.cpp +++ b/stdlib/public/runtime/Casting.cpp @@ -40,7 +40,6 @@ #include "SwiftValue.h" #endif -#include #include #include @@ -2667,7 +2666,7 @@ static bool _dynamicCastClassToValueViaObjCBridgeable( // Allocate a buffer to store the T? returned by bridging. // The extra byte is for the tag. const std::size_t inlineValueSize = 3 * sizeof(void*); - alignas(std::max_align_t) char inlineBuffer[inlineValueSize + 1]; + alignas(max_align_t) char inlineBuffer[inlineValueSize + 1]; void *optDestBuffer; if (targetType->getValueWitnesses()->getStride() <= inlineValueSize) { // Use the inline buffer.