================
@@ -164,7 +170,7 @@ class InterpState final : public State, public SourceMapper
{
/// Reference to the offset-source mapping.
SourceMapper *M;
/// Allocator used for dynamic allocations performed via the program.
- DynamicAllocator Alloc;
+ std::unique_ptr<DynamicAllocator> Alloc;
----------------
tbaederr wrote:
That causes problems because of
```c++
DynamicAllocator() = default;
DynamicAllocator(DynamicAllocator &) = delete;
DynamicAllocator(DynamicAllocator &&) = delete;
```
But I'd kinda like to keep those so we avoid accidentally copying it :thinking:
https://github.com/llvm/llvm-project/pull/155831
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits