[libcxx-commits] [libcxx] [libc++] Diagnoses insufficiently aligned pointers for std::assume_aligned during constant evaluation (PR #73775)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 23 02:28:14 PST 2023
================
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <memory>
+
+template <size_t Size>
----------------
philnik777 wrote:
You don't use `Size` anywhere. Please test a few more alignment assumptions, like 4, 8 and something large like 64.
https://github.com/llvm/llvm-project/pull/73775
More information about the libcxx-commits
mailing list