Skip to content

Commit 7ef9a6c

Browse files
jfbastienjrose-apple
authored andcommitted
Don't use AlignedCharArray (swiftlang#26351)
I'm about to remove it in https://reviews.llvm.org/D65249
1 parent 542cbad commit 7ef9a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/ABI/TrailingObjects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class TrailingObjects : private trailing_objects_internal::TrailingObjectsImpl<
367367
template <typename... Tys> struct FixedSizeStorage {
368368
template <size_t... Counts> struct with_counts {
369369
enum { Size = totalSizeToAlloc<Tys...>(Counts...) };
370-
typedef llvm::AlignedCharArray<alignof(BaseTy), Size> type;
370+
using type = std::aligned_storage<Size, alignof(BaseTy)>;
371371
};
372372
};
373373

0 commit comments

Comments
 (0)