Skip to content

Commit 7ce94fe

Browse files
committed
Address PR comment.
1 parent 589e898 commit 7ce94fe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/Object/OffloadBundle.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,15 @@ CompressedOffloadBundle::compress(compression::Params P,
333333
if (Version == 2) {
334334
// For V2, ensure the sizes don't exceed 32-bit limit.
335335
if (UncompressedSize64 > std::numeric_limits<uint32_t>::max())
336-
return createStringError(inconvertibleErrorCode(),
337-
"uncompressed size exceeds version 2 limit");
336+
return createStringError(
337+
inconvertibleErrorCode(),
338+
"uncompressed size exceeds version 2 unsigned 32-bit integer limit");
338339
if ((MagicNumber.size() + sizeof(uint32_t) + sizeof(Version) +
339340
sizeof(CompressionMethod) + sizeof(uint32_t) + sizeof(TruncatedHash) +
340341
CompressedBuffer.size()) > std::numeric_limits<uint32_t>::max())
341-
return createStringError(inconvertibleErrorCode(),
342-
"total file size exceeds version 2 limit");
342+
return createStringError(
343+
inconvertibleErrorCode(),
344+
"total file size exceeds version 2 unsigned 32-bit integer limit");
343345

344346
TotalFileSize64 = MagicNumber.size() + sizeof(uint32_t) + sizeof(Version) +
345347
sizeof(CompressionMethod) + sizeof(uint32_t) +

0 commit comments

Comments
 (0)