Skip to content

Conversation

@vedantk
Copy link
Contributor

@vedantk vedantk commented Oct 8, 2019

Closure bodies should only be visited for coverage purposes once -- when
the associated SILFunction is created.

This resolves an assertion failure about an empty region stack (this
root cause of which was double-visitation of a closure body).

Closure bodies should only be visited for coverage purposes once -- when
the associated SILFunction is created.

This resolves an assertion failure about an empty region stack (this
root cause of which was double-visitation of a closure body).
@vedantk
Copy link
Contributor Author

vedantk commented Oct 8, 2019

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 91669ce into swiftlang:master Oct 8, 2019
if (skipExpr(E))
return {true, E};

// Profiling for closures should be handled separately. Do not visit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to consider creating a new CoverageASTWalker or similar to extract some of the common logic between your ASTWalker implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants