llvm.org GIT mirror llvm / 6672e7a
[NFC] avoid AlignedCharArray in LLVM As discussed in D65249, don't use AlignedCharArray or std::aligned_storage. Just use alignas(X) char Buf[Size];. This will allow me to remove AlignedCharArray entirely, and works on the current minimum version of Visual Studio. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367277 91177308-0d34-0410-b5e6-96231b3b80d8 JF Bastien 10 months ago
2 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
245245 }
246246
247247 private:
248 AlignedCharArray::value,
249 sizeof(value_type)> Value;
248 struct {
249 alignas(PickAlignment
250 alignment>::value) char buffer[sizeof(value_type)];
251 } Value;
250252
251253 public:
252254 struct ref {
368368 template struct FixedSizeStorage {
369369 template struct with_counts {
370370 enum { Size = totalSizeToAlloc(Counts...) };
371 typedef llvm::AlignedCharArray type;
371 struct type {
372 alignas(BaseTy) char buffer[Size];
373 };
372374 };
373375 };
374376