Skip to content

Commit 339e896

Browse files
z2ohchelcassanova
authored andcommitted
Add total argument to Progress object for Swift reflection setup
The total for this Progress object is well known at construction time, so by adding it the Progress object is no longer "indeterminate" and will complete successfully. (cherry picked from commit 68e9d57)
1 parent 5a302e4 commit 339e896

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
@@ -502,7 +502,7 @@ void SwiftLanguageRuntimeImpl::ProcessModulesToAdd() {
502502

503503
auto &target = m_process.GetTarget();
504504
auto exe_module = target.GetExecutableModule();
505-
Progress progress("Setting up Swift reflection");
505+
Progress progress("Setting up Swift reflection", {}, modules_to_add_snapshot.GetSize());
506506
size_t completion = 0;
507507

508508
// Add all defered modules to reflection context that were added to

0 commit comments

Comments
 (0)