diff --git a/include/swift/SIL/SILBridgingImpl.h b/include/swift/SIL/SILBridgingImpl.h index d0aa56029608c..ce7f353ac620e 100644 --- a/include/swift/SIL/SILBridgingImpl.h +++ b/include/swift/SIL/SILBridgingImpl.h @@ -1362,11 +1362,11 @@ BridgedNullableVarDecl BridgedInstruction::AllocBox_getDecl() const { } BridgedNullableVarDecl BridgedInstruction::GlobalAddr_getDecl() const { - return {getAs()->getDecl()}; + return {getAs()->getReferencedGlobal()->getDecl()}; } BridgedNullableVarDecl BridgedInstruction::RefElementAddr_getDecl() const { - return {getAs()->getDecl()}; + return {getAs()->getField()}; } OptionalBridgedSILDebugVariable