Skip to content

[DebugInfo] Set the autogenerated bit to request recycled locations #15929

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 3 commits into from
Apr 13, 2018

Conversation

vedantk
Copy link
Contributor

@vedantk vedantk commented Apr 13, 2018

IRGenDebugInfo expects to see an autogenerated bit before allowing reuse
of the last seen debug location for a new instruction.

rdar://28544248

vedantk added 2 commits April 13, 2018 14:38
Having a default location of None doesn't seem to enhance readability.
IRGenDebugInfo expects to see an autogenerated bit before allowing reuse
of the last seen debug location for a new instruction.

rdar://28544248
@vedantk
Copy link
Contributor Author

vedantk commented Apr 13, 2018

@swift-ci Please smoke test

@vedantk vedantk requested a review from adrian-prantl April 13, 2018 21:40
Copy link
Contributor

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -125,7 +125,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
void finalize();

void setCurrentLoc(IRBuilder &Builder, const SILDebugScope *DS,
Optional<SILLocation> Loc = None);
Optional<SILLocation> Loc);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a caller left that actually passes None? Otherwise we could drop the Optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I'll do that.

Passing in some SILLocation to IRGenDebugInfo setCurrentLoc() will now
be mandatory.
@vedantk
Copy link
Contributor Author

vedantk commented Apr 13, 2018

@swift-ci Please smoke test and merge

1 similar comment
@vedantk
Copy link
Contributor Author

vedantk commented Apr 13, 2018

@swift-ci Please smoke test and merge

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