We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca27ea6 commit 87114a5Copy full SHA for 87114a5
lib/Interpreter/CXCppInterOp.cpp
@@ -306,7 +306,10 @@ TInterp_t clang_Interpreter_takeInterpreterAsPtr(CXInterpreter I) {
306
307
enum CXErrorCode clang_Interpreter_undo(CXInterpreter I, unsigned int N) {
308
#ifdef CPPINTEROP_USE_CLING
309
- return CXError_Failure;
+ auto* interp = getInterpreter(I);
310
+ cling::Interpreter::PushTransactionRAII RAII(interp);
311
+ interp->unload(N);
312
+ return CXError_Success;
313
#else
314
return getInterpreter(I)->Undo(N) ? CXError_Failure : CXError_Success;
315
#endif // CPPINTEROP_USE_CLING
0 commit comments