[NFC] Fix warning reported on bots
authorChris Bieneman <chris.bieneman@me.com>
Mon, 2 May 2022 20:02:10 +0000 (15:02 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Mon, 2 May 2022 20:02:44 +0000 (15:02 -0500)
llvm/include/llvm/BinaryFormat/DXContainer.h
llvm/unittests/Object/DXContainerTest.cpp

index f9ec9fe..34660c8 100644 (file)
@@ -64,7 +64,7 @@ struct ContainerVersion {
 
 struct Header {
   uint8_t Magic[4]; // "DXBC"
-  Hash Hash;
+  Hash FileHash;
   ContainerVersion Version;
   uint32_t FileSize;
   uint32_t PartCount;
index 846176a..06d0065 100644 (file)
@@ -36,7 +36,7 @@ TEST(DXCFile, ParseHeader) {
   DXContainer C =
       llvm::cantFail(DXContainer::create(getMemoryBuffer<32>(Buffer)));
   EXPECT_TRUE(memcmp(C.getHeader().Magic, "DXBC", 4) == 0);
-  EXPECT_TRUE(memcmp(C.getHeader().Hash.Digest,
+  EXPECT_TRUE(memcmp(C.getHeader().FileHash.Digest,
                      "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) == 0);
   EXPECT_EQ(C.getHeader().Version.Major, 1u);
   EXPECT_EQ(C.getHeader().Version.Minor, 0u);