Skip to content

Commit 7c9ac60

Browse files
committed
[RemoteInspection] Use the address returned by resolveRemoteAddress
A previous change introduced the "resolveRemoteAddress" API in the MemoryReader interface, along with one use of it. However, the resolved memory address is created, but left accidentally unused. rdar://161919584 (cherry picked from commit 3472c00)
1 parent c2070c0 commit 7c9ac60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Remote/MetadataReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,7 @@ class MetadataReader {
29232923
RemoteAddress address(descriptor.getRemoteAddress());
29242924
address = Reader->resolveRemoteAddress(address).value_or(address);
29252925
snprintf(addressBuf, sizeof(addressBuf), "$%" PRIx64,
2926-
(uint64_t)descriptor.getRemoteAddress().getRawAddress());
2926+
(uint64_t)address.getRawAddress());
29272927
auto anonNode = dem.createNode(Node::Kind::AnonymousContext);
29282928
CharVector addressStr;
29292929
addressStr.append(addressBuf, dem);

0 commit comments

Comments
 (0)