================
@@ -449,7 +449,7 @@ class FactManager {
template <typename FactType, typename... Args>
FactType *createFact(Args &&...args) {
- void *Mem = FactAllocator.Allocate<FactType>();
+ void *Mem = FactAllocator.Allocate(sizeof(FactType), alignof(FactType));
----------------
vitalybuka wrote:
`FactType *Res = new (FactAllocator) FactType(std::forward<Args>(args)...);` ?
https://github.com/llvm/llvm-project/pull/238333
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits