We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d18fa7 commit 3c12ea7Copy full SHA for 3c12ea7
include/swift/SIL/SILBridgingImpl.h
@@ -1362,11 +1362,11 @@ BridgedNullableVarDecl BridgedInstruction::AllocBox_getDecl() const {
1362
}
1363
1364
BridgedNullableVarDecl BridgedInstruction::GlobalAddr_getDecl() const {
1365
- return {getAs<swift::DebugValueInst>()->getDecl()};
+ return {getAs<swift::GlobalAddrInst>()->getReferencedGlobal()->getDecl()};
1366
1367
1368
BridgedNullableVarDecl BridgedInstruction::RefElementAddr_getDecl() const {
1369
+ return {getAs<swift::RefElementAddrInst>()->getField()};
1370
1371
1372
OptionalBridgedSILDebugVariable
0 commit comments