Skip to content

Commit a6dd0bc

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lld/MachO/Driver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,12 @@ void multiThreadedPageInBackground(DeferredFiles &deferred) {
360360
if (localIndex >= (int)deferred.size())
361361
break;
362362
const StringRef &buff = deferred[localIndex].buffer.getBuffer();
363-
totalBytes += buff.size();
364363
if (buff.size() > largeArchive)
365364
continue;
366-
365+
#ifndef NDEBUG
366+
totalBytes += buff.size();
367367
included += 1;
368+
#endif
368369

369370
// Reference all file's mmap'd pages to load them into memory.
370371
for (const char *page = buff.data(), *end = page + buff.size();

0 commit comments

Comments
 (0)