diff --git a/include/cling/Interpreter/Transaction.h b/include/cling/Interpreter/Transaction.h index 92526fb7..7c4c4a93 100644 --- a/include/cling/Interpreter/Transaction.h +++ b/include/cling/Interpreter/Transaction.h @@ -199,7 +199,7 @@ namespace cling { ///\param[in] nested - The transaction to be nested. /// void addNestedTransaction(Transaction* nested) { - nested->setParent(nested); + nested->setParent(this); // Leave a marker in the parent transaction, where the nested transaction // started. Using empty DeclGroupRef is save because append() filters // out possible empty DeclGroupRefs.