-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[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
Conversation
@swift-ci please test |
lib/SILGen/SILGen.cpp
Outdated
@@ -1487,6 +1487,8 @@ void SILGenModule::visitTopLevelCodeDecl(TopLevelCodeDecl *td) { | |||
|
|||
TopLevelSGF->emitProfilerIncrement(td->getBody()); | |||
|
|||
DebugScope mypatatino(*TopLevelSGF, CleanupLocation(td)); |
There was a problem hiding this comment.
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.
<rdar://problem/46686369>
@swift-ci please test |
1 similar comment
@swift-ci please test |
Build failed |
Build failed |
@@ -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]] |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We resolved this offline.
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.