diff --git a/llvm/unittests/Support/Base64Test.cpp b/llvm/unittests/Support/Base64Test.cpp index 0058d036c838d..fbc0617cbb635 100644 --- a/llvm/unittests/Support/Base64Test.cpp +++ b/llvm/unittests/Support/Base64Test.cpp @@ -78,7 +78,7 @@ TEST(Base64Test, RoundTrip) { {Arr6, sizeof(Arr6)}, {Arr7, sizeof(Arr7)}, {Arr8, sizeof(Arr8)}, {Arr9, sizeof(Arr9)}}; - for (auto I = 0; I < sizeof(Tests) / sizeof(Tests[0]); ++I) { + for (size_t I = 0; I < sizeof(Tests) / sizeof(Tests[0]); ++I) { std::string Encoded; size_t Len; { diff --git a/llvm/unittests/Support/PropertySetIOTest.cpp b/llvm/unittests/Support/PropertySetIOTest.cpp index dd1c04ca21cd2..74ade9f9dcc21 100644 --- a/llvm/unittests/Support/PropertySetIOTest.cpp +++ b/llvm/unittests/Support/PropertySetIOTest.cpp @@ -51,8 +51,8 @@ TEST(PropertySet, ByteArrayValuesIO) { // first 8 bytes are the size in bits (40) of what follows (5 bytes). auto Content = "[Opt/Param]\n" - "kernel1=2|IAAAAAAAAAQA\n"; - "kernel2=2|oAAAAAAAAAw///3/wB\n"; + "kernel1=2|IAAAAAAAAAQA\n" + "kernel2=2|oAAAAAAAAAw///3/wB\n"; auto MemBuf = MemoryBuffer::getMemBuffer(Content); // Parse a property set registry auto PropSetsPtr = PropertySetRegistry::read(MemBuf.get()); @@ -69,4 +69,4 @@ TEST(PropertySet, ByteArrayValuesIO) { // Check that the original and the serialized version are equal ASSERT_EQ(Serialized, Content); } -} // namespace \ No newline at end of file +} // namespace