]> granicus.if.org Git - llvm/commitdiff
[Remarks] Update error message format string
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 29 Jul 2019 17:40:34 +0000 (17:40 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 29 Jul 2019 17:40:34 +0000 (17:40 +0000)
All the clang-cmake-armv{7,8} bots are failing this test. This is an
attempt to fix this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367243 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Remarks/YAMLRemarkParser.cpp

index 3402dac1c9996b0b93d38c19d01e17b5620ab080..0b11523769270c6a4ce1fedaa74eb2dcdfd4e45b 100644 (file)
@@ -76,10 +76,10 @@ static Expected<uint64_t> parseVersion(StringRef &Buf) {
       support::endian::read<uint64_t, support::little, support::unaligned>(
           Buf.data());
   if (Version != remarks::Version)
-    return createStringError(
-        std::errc::illegal_byte_sequence,
-        "Mismatching remark version. Got %u, expected %u.", Version,
-        remarks::Version);
+    return createStringError(std::errc::illegal_byte_sequence,
+                             "Mismatching remark version. Got %" PRId64
+                             ", expected %" PRId64 ".",
+                             Version, remarks::Version);
   Buf = Buf.drop_front(sizeof(uint64_t));
   return Version;
 }