Skip to content

Commit 9805bd8

Browse files
authored
Merge pull request swiftlang#84046 from al45tair/eng/PR-158728756
[Reflection] Fix task reflection to strip signed pointers.
2 parents 1b856e1 + b2e2bd2 commit 9805bd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,10 @@ class ReflectionContext
18571857
RemoteAddress(RecordObj->Parent, RemoteAddress::DefaultAddressSpace);
18581858
}
18591859

1860-
const auto TaskResumeContext = AsyncTaskObj->ResumeContextAndReserved[0];
1860+
const auto TaskResumeContext = stripSignedPointer(
1861+
RemoteAddress(AsyncTaskObj->ResumeContextAndReserved[0],
1862+
RemoteAddress::DefaultAddressSpace)
1863+
).getRawAddress();
18611864
Info.ResumeAsyncContext = TaskResumeContext;
18621865

18631866
// Walk the async backtrace.

0 commit comments

Comments
 (0)