Skip to content

Commit 81467b8

Browse files
committed
[lldb] Semantic fix to usage of AsyncUnwindRegisterNumbers (NFC)
1 parent 9545e4d commit 81467b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ lldb::addr_t SwiftLanguageRuntime::GetAsyncContext(RegisterContext *regctx) {
23212321
auto arch = regctx->CalculateTarget()->GetArchitecture();
23222322
if (auto regnums = GetAsyncUnwindRegisterNumbers(arch.GetMachine())) {
23232323
auto reg = regctx->ConvertRegisterKindToRegisterNumber(
2324-
RegisterKind::eRegisterKindDWARF, regnums->async_ctx_regnum);
2324+
regnums->GetRegisterKind(), regnums->async_ctx_regnum);
23252325
return regctx->ReadRegisterAsUnsigned(reg, LLDB_INVALID_ADDRESS);
23262326
}
23272327

0 commit comments

Comments
 (0)