Skip to content

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
@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

2 participants