Skip to content

[SILGen] Create a new debug scope for top-level code. #21777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2019

Conversation

dcci
Copy link
Member

@dcci dcci commented Jan 10, 2019

rdar://problem/46686369

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@dcci dcci requested a review from adrian-prantl January 10, 2019 23:37
@dcci
Copy link
Member Author

dcci commented Jan 10, 2019

@swift-ci please test

@@ -1487,6 +1487,8 @@ void SILGenModule::visitTopLevelCodeDecl(TopLevelCodeDecl *td) {

TopLevelSGF->emitProfilerIncrement(td->getBody());

DebugScope mypatatino(*TopLevelSGF, CleanupLocation(td));
Copy link
Member Author

Choose a reason for hiding this comment

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

oops, let me rename this.

@dcci
Copy link
Member Author

dcci commented Jan 10, 2019

@swift-ci please test

1 similar comment
@dcci
Copy link
Member Author

dcci commented Jan 10, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - abb1bb3

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - abb1bb3

@@ -7,7 +7,7 @@ for i in 0 ..< 3 {
}

for i in 0 ..< 3 {
// CHECK-DAG: ![[SCOPE2:[0-9]+]] = {{.*}}Block(scope: ![[MAIN]],{{.*}}line: [[@LINE-1]]
// CHECK-DAG: ![[SCOPE2:[0-9]+]] = {{.*}}Block(scope: ![[MAIN2:[0-9]+]],{{.*}}line: [[@LINE-1]]
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.. why aren't they in the same parent scope DS?

Copy link
Member Author

Choose a reason for hiding this comment

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

We resolved this offline.

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