* Forbid to clone GT_RET_EXPR
It potentially creates non-unique trees.
goto DONE;
case GT_RET_EXPR:
- copy = gtNewInlineCandidateReturnExpr(tree->gtRetExpr.gtInlineCandidate, tree->gtType);
+ // GT_RET_EXPR is unique node, that contains a link to a gtInlineCandidate node,
+ // that is part of another statement. We cannot clone both here and cannot
+ // create another GT_RET_EXPR that points to the same gtInlineCandidate.
+ NO_WAY("Cloning of GT_RET_EXPR node not supported");
goto DONE;
case GT_MEMORYBARRIER: