The body of LambdaExpr is currently not properly serialized. Instead LambdaExpr::getBody
checks if the body has been already deserialized and if not mutates LambdaExpr. This can be
observed with an AST dump test, where the body of the LambdaExpr will be null.
The mutation in LambdaExpr::getBody was left because of another bug: it is not true that the body
of a LambdaExpr is always a CompoundStmt; it can also be a CoroutineBodyStmt wrapping a
CompoundStmt. This is fixed by returning a Stmt * from getBody and introducing a convenience
function getCompoundStmtBody which always returns a CompoundStmt *. This function can be
used by callers who do not care about the coroutine node.
Happily all but one user of getBody treat it as a Stmt * and so this change is non-intrusive.
I wish we'd get the const correctness right when doing this (const methods returning pointers to const objects, not mixing constness like this). I don't insist, but if you put in overloads, I wouldn't be sad either.