Skip to content

Conversation

@vedantk
Copy link
Contributor

@vedantk vedantk commented Apr 17, 2018

… (#15966)

  • [Coverage] Instrument constructor initializers (SR-7446)

We need to instrument constructor initializers, instead of the
delegating constructors which just call them.

rdar://39460313

  • [Coverage] Remove dead code, NFC

  • [Coverage] Use a shared profiler for constructors and member initializers

This fixes coverage reporting for member initializers and cuts down on
repeated AST traversals of pattern bindings within nominal type decls.

This allows us to remove some defensive heuristic code which dealt with
closures and if-exprs within member initializers.

(cherry picked from commit 8a003a4)

Resolves SR-7446.

…wiftlang#15966)

* [Coverage] Instrument constructor initializers (SR-7446)

We need to instrument constructor initializers, instead of the
delegating constructors which just call them.

rdar://39460313

* [Coverage] Remove dead code, NFC

* [Coverage] Use a shared profiler for constructors and member initializers

This fixes coverage reporting for member initializers and cuts down on
repeated AST traversals of pattern bindings within nominal type decls.

This allows us to remove some defensive heuristic code which dealt with
closures and if-exprs within member initializers.

(cherry picked from commit 8a003a4)
@vedantk
Copy link
Contributor Author

vedantk commented Apr 17, 2018

@swift-ci test and merge

@swift-ci swift-ci merged commit 14e1f29 into swiftlang:swift-4.2-branch Apr 18, 2018
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.

2 participants