aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2020-10-18 11:41:52 -0400
committerHubert Tong <hubert.reinterpretcast@gmail.com>2020-10-18 12:39:15 -0400
commit2980ce98be117a756ec5ad485273fd5400049683 (patch)
treec439a64babde2434a6d6093a0be6eb468a481ef7 /llvm/lib/Object/COFFObjectFile.cpp
parentf4d8e86dbed599145490069fb547a87dbaff4a3e (diff)
downloadllvm-2980ce98be117a756ec5ad485273fd5400049683.zip
llvm-2980ce98be117a756ec5ad485273fd5400049683.tar.gz
llvm-2980ce98be117a756ec5ad485273fd5400049683.tar.bz2
Fix various format specifier mismatches
Format specifiers of incorrect length are replaced with format specifier macros from `<cinttypes>` matching the typedefs used to declare the type of the value being printed. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D89637
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index cd10e67..c090259 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -28,8 +28,8 @@
#include "llvm/Support/MemoryBuffer.h"
#include <algorithm>
#include <cassert>
+#include <cinttypes>
#include <cstddef>
-#include <cstdint>
#include <cstring>
#include <limits>
#include <memory>
@@ -666,7 +666,7 @@ Error COFFObjectFile::initTLSDirectoryPtr() {
if (DataEntry->Size != DirSize)
return createStringError(
object_error::parse_failed,
- "TLS Directory size (%u) is not the expected size (%u).",
+ "TLS Directory size (%u) is not the expected size (%" PRIu64 ").",
static_cast<uint32_t>(DataEntry->Size), DirSize);
uintptr_t IntPtr = 0;