Skip to content
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

Fix SILBridging for GlobalAddr_getDecl #74995

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jul 5, 2024

and RefElementAddr_getDecl.

Fixes:
Assertion failed: (isa(Val) && "cast() argument of incompatible type!"), function cast, file Casting.h

While running pass #224 SILFunctionTransform "LifetimeDependenceDiagnostics"
#7 0x0000000102d3efcc decltype(auto) llvm::cast<swift::DebugValueInst, swift::SILInstruction>(swift::SILInstruction*)
#8 0x0000000102d01e24 swift::DebugValueInst* BridgedInstruction::getAsswift::DebugValueInst() const
#9 0x0000000102d01ee4 BridgedInstruction::GlobalAddr_getDecl() const

and RefElementAddr_getDecl.

Fixes:
Assertion failed: (isa<To>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file Casting.h

While running pass swiftlang#224 SILFunctionTransform "LifetimeDependenceDiagnostics"
 swiftlang#7 0x0000000102d3efcc decltype(auto) llvm::cast<swift::DebugValueInst, swift::SILInstruction>(swift::SILInstruction*)
 swiftlang#8 0x0000000102d01e24 swift::DebugValueInst* BridgedInstruction::getAs<swift::DebugValueInst>() const
 swiftlang#9 0x0000000102d01ee4 BridgedInstruction::GlobalAddr_getDecl() const
@atrick atrick requested a review from meg-gupta July 5, 2024 19:01
@atrick atrick requested review from eeckstein and jckarter as code owners July 5, 2024 19:01
@atrick
Copy link
Contributor Author

atrick commented Jul 5, 2024

@swift-ci test

@atrick atrick merged commit e61f514 into swiftlang:main Jul 6, 2024
5 checks passed
@atrick atrick deleted the fix-vardecl branch July 6, 2024 03:47
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