Skip to content

Commit 92cb18f

Browse files
committed
Fix typo in comment: 'unit64_t' to 'uint64_t'
Corrects a typo in comments within XCOFFObjectFile.cpp, changing 'unit64_t' to the correct type 'uint64_t' for clarity.
1 parent c9eb21f commit 92cb18f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Object/XCOFFObjectFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const {
379379
}
380380

381381
uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const {
382-
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
382+
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
383383
// with MSVC.
384384
if (is64Bit())
385385
return toSection64(Sec)->VirtualAddress;
@@ -397,7 +397,7 @@ uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
397397
}
398398

399399
uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
400-
// Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
400+
// Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
401401
// with MSVC.
402402
if (is64Bit())
403403
return toSection64(Sec)->SectionSize;

0 commit comments

Comments
 (0)