================
@@ -275,7 +275,7 @@ class ConstructionContext {
   // A helper function for constructing an instance into a bump vector context.
   template <typename T, typename... ArgTypes>
   static T *create(BumpVectorContext &C, ArgTypes... Args) {
-    auto *CC = C.getAllocator().Allocate<T>();
+    void *CC = C.getAllocator().Allocate(sizeof(T), alignof(T));
     return new (CC) T(Args...);
----------------
vitalybuka wrote:

similar to other PR
`return new (C.getAllocator()) T(std::forward<ArgTypes>(Args)...);`

https://github.com/llvm/llvm-project/pull/238330
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to