[llvm] 10021c7 - Fix typo in comment: 'unit64_t' to 'uint64_t' (#162869)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 09:50:37 PDT 2025
Author: 小钟
Date: 2025-10-10T17:50:33+01:00
New Revision: 10021c737a3565183d13eabbd29fc3254e4b30c4
URL: https://github.com/llvm/llvm-project/commit/10021c737a3565183d13eabbd29fc3254e4b30c4
DIFF: https://github.com/llvm/llvm-project/commit/10021c737a3565183d13eabbd29fc3254e4b30c4.diff
LOG: Fix typo in comment: 'unit64_t' to 'uint64_t' (#162869)
Corrects a typo in comments within XCOFFObjectFile.cpp, changing
'unit64_t' to the correct type 'uint64_t' for clarity.
Added:
Modified:
llvm/lib/Object/XCOFFObjectFile.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp
index c5a2ec219e91c..7a8c8ad393a92 100644
--- a/llvm/lib/Object/XCOFFObjectFile.cpp
+++ b/llvm/lib/Object/XCOFFObjectFile.cpp
@@ -379,7 +379,7 @@ Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const {
}
uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const {
- // Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
+ // Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
// with MSVC.
if (is64Bit())
return toSection64(Sec)->VirtualAddress;
@@ -397,7 +397,7 @@ uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
}
uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
- // Avoid ternary due to failure to convert the ubig32_t value to a unit64_t
+ // Avoid ternary due to failure to convert the ubig32_t value to a uint64_t
// with MSVC.
if (is64Bit())
return toSection64(Sec)->SectionSize;
More information about the llvm-commits
mailing list