[llvm] 55e13a6 - [NFC] Fix warning reported on bots
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 13:03:57 PDT 2022
Author: Chris Bieneman
Date: 2022-05-02T15:02:44-05:00
New Revision: 55e13a6bc0d6a31afc258a012184253041b0eb8e
URL: https://github.com/llvm/llvm-project/commit/55e13a6bc0d6a31afc258a012184253041b0eb8e
DIFF: https://github.com/llvm/llvm-project/commit/55e13a6bc0d6a31afc258a012184253041b0eb8e.diff
LOG: [NFC] Fix warning reported on bots
Added:
Modified:
llvm/include/llvm/BinaryFormat/DXContainer.h
llvm/unittests/Object/DXContainerTest.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/BinaryFormat/DXContainer.h b/llvm/include/llvm/BinaryFormat/DXContainer.h
index f9ec9fe45a0cb..34660c8fe0e26 100644
--- a/llvm/include/llvm/BinaryFormat/DXContainer.h
+++ b/llvm/include/llvm/BinaryFormat/DXContainer.h
@@ -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;
diff --git a/llvm/unittests/Object/DXContainerTest.cpp b/llvm/unittests/Object/DXContainerTest.cpp
index 846176a089fbc..06d006506c63d 100644
--- a/llvm/unittests/Object/DXContainerTest.cpp
+++ b/llvm/unittests/Object/DXContainerTest.cpp
@@ -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);
More information about the llvm-commits
mailing list