Skip to content

Commit a5f7a42

Browse files
committed
Remove a couple of warnings.
1 parent febf5a9 commit a5f7a42

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lld/MachO/Driver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,16 @@ void multiThreadedPageInBackground(const DeferredFiles &deferred) {
311311
totalBytes += buff.size();
312312

313313
// Reference all file's mmap'd pages to load them into memory.
314+
volatile char t = 0;
314315
for (const char *page = buff.data(), *end = page + buff.size();
315316
page < end; page += pageSize)
316-
volatile char t = *page;
317+
t += *page;
317318
}
318319
});
319320

320-
#ifndef NDEBUG
321321
if (getenv("LLD_MULTI_THREAD_PAGE"))
322322
llvm::dbgs() << "multiThreadedPageIn " << totalBytes << "/"
323323
<< deferred.size() << "\n";
324-
#endif
325324
}
326325

327326
static void multiThreadedPageIn(const DeferredFiles &deferred) {

lld/MachO/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def interposable : Flag<["-"], "interposable">,
397397
HelpText<"Indirects access to all exported symbols in an image">,
398398
Group<grp_opts>;
399399
def read_threads : Joined<["--"], "read-threads=">,
400-
HelpText<"Number of threads to use to proactively page in files. 20 would be a typical value, use 0 to disable this feature.">,
400+
HelpText<"Number of threads to use to proactively page in files for faster disk i/o. 20 would be a typical value, use 0 to disable this feature.">,
401401
Group<grp_lld>;
402402
def order_file : Separate<["-"], "order_file">,
403403
MetaVarName<"<file>">,

0 commit comments

Comments
 (0)