Skip to content

Commit 5cb63c4

Browse files
committed
Call FixDataAddress on object addresses
1 parent d8f6faa commit 5cb63c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ static llvm::Error PrintObjectViaPointer(Stream &strm, ValueObject &object,
10261026
if (flags.Test(eTypeInstanceIsPointer)) {
10271027
// Objects are pointers.
10281028
addr = object.GetValueAsUnsigned(LLDB_INVALID_ADDRESS);
1029+
addr = process.FixDataAddress(addr);
10291030
} else {
10301031
// Get the address of non-object values (structs, enums).
10311032
auto addr_and_type = object.GetAddressOf(false);

0 commit comments

Comments
 (0)