Skip to content

Move swift runtime failure messages from linkage name to function name#29506

Merged
medismailben merged 1 commit into
swiftlang:masterfrom
medismailben:master
Jan 29, 2020
Merged

Move swift runtime failure messages from linkage name to function name#29506
medismailben merged 1 commit into
swiftlang:masterfrom
medismailben:master

Conversation

@medismailben
Copy link
Copy Markdown
Contributor

This PR moves swift runtimes failure (#25978) messages from the linkage name to the function name.

Since the failure message (i.e. Swift runtime failure: arithmetic overflow) don't conform with a proper mangling, when lldb tries to fetch the inlined frame symbol, it gets discarded. Moving it to the function name fixes this issue.

Signed-off-by: Med Ismail Bennani medismail.bennani@gmail.com

@medismailben
Copy link
Copy Markdown
Contributor Author

@swift-ci test

Copy link
Copy Markdown
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

lgtm

@swift-ci
Copy link
Copy Markdown
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 38cd617ef71017f7fe0b67002abaff600dd79ef9

@swift-ci
Copy link
Copy Markdown
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 38cd617ef71017f7fe0b67002abaff600dd79ef9

Comment thread lib/IRGen/IRGenDebugInfo.cpp Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you please also add a testcase to test/DebugInfo ?

Copy link
Copy Markdown
Contributor Author

@medismailben medismailben Jan 28, 2020

Choose a reason for hiding this comment

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

I updated the original tests (test/DebugInfo/linetable-codeview.swift & test/IRGen/condfail_message.swift) to reflect my changes.

Should I add another test ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, that is fine! For some reason I didn't see this earlier.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
@medismailben
Copy link
Copy Markdown
Contributor Author

@swift-ci test

@medismailben medismailben merged commit 14fd6c8 into swiftlang:master Jan 29, 2020
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.

4 participants