Skip to content

Commit 890c492

Browse files
johnno1962ellishg
andauthored
Update lld/MachO/Driver.cpp
Co-authored-by: Ellis Hoag <[email protected]>
1 parent 5caf5a6 commit 890c492

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lld/MachO/Driver.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ using DeferredFiles = std::vector<DeferredFile>;
296296
// This code forces the page-ins on multiple threads so
297297
// the process is not stalled waiting on disk buffer i/o.
298298
void multiThreadedPageInBackground(const DeferredFiles &deferred) {
299-
static size_t pageSize = Process::getPageSizeEstimate(), totalBytes;
299+
static const size_t pageSize = Process::getPageSizeEstimate();
300+
size_t totalBytes = 0;
300301
static std::mutex mutex;
301302
size_t index = 0;
302303

0 commit comments

Comments
 (0)