Skip to content

Commit

Permalink
GOFFObjectFile.cpp: Suppress a warning in -Asserts (D98437)
Browse files Browse the repository at this point in the history
  • Loading branch information
chapuni committed Apr 29, 2023
1 parent 91528d2 commit 78ceb39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions llvm/lib/Object/GOFFObjectFile.cpp
Expand Up @@ -105,13 +105,15 @@ GOFFObjectFile::GOFFObjectFile(MemoryBufferRef Object, Error &Err)
continue;
}

#ifndef NDEBUG
for (size_t J = 0; J < GOFF::RecordLength; ++J) {
const uint8_t *P = I + J;
if (J % 8 == 0)
LLVM_DEBUG(dbgs() << " ");
dbgs() << " ";

LLVM_DEBUG(dbgs() << format("%02hhX", *P));
dbgs() << format("%02hhX", *P);
}
#endif
switch (RecordType) {
case GOFF::RT_ESD: {
// Save ESD record.
Expand Down

0 comments on commit 78ceb39

Please sign in to comment.