================ @@ -92,119 +99,456 @@ class QualType; X(double, Double) \ X(long double, LongDouble) -class REPL_EXTERNAL_VISIBILITY Value { - union Storage { -#define X(type, name) type m_##name; +class Value; + +/// \struct ValueCleanup +/// \brief Encapsulates destructor invocation for REPL values. ---------------- SahilPatidar wrote:
We can move `ValueResultManager` elsewhere since it’s related to interpreter functionality, but we still need a similar solution to what `ValueCleanup` provides. `ValueCleanup` is essentially just a wrapper around the old approach: previously we made direct calls, but now we use `orc::Wrapper` calls. https://github.com/llvm/llvm-project/pull/156649 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits