Skip to content

Commit 40b38fc

Browse files
committed
return early in case of !(arm64 || x86_64)
1 parent e7429bb commit 40b38fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Target/SwiftLanguageRuntimeNames.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ class ThreadPlanStepInAsync : public ThreadPlan {
344344
async_context_regnum = arm64_dwarf::x22;
345345
} else {
346346
assert(false && "swift async supports only x86_64 and arm64");
347+
return 0;
347348
}
348349

349350
auto async_context_reg = reg_ctx_sp->ConvertRegisterKindToRegisterNumber(

0 commit comments

Comments
 (0)