================
@@ -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;
----------------
zwuis wrote:

What about using `std::optional<DynamicAllocator>`?

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

Reply via email to