[llvm] [DirectX] Fix DXIL part header version encoding (PR #91506)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 10:19:09 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 8d9b15497d70ac782d7d01a2d606f9fec7e7f642 9cd6ecf2a639826ddfe6ed4424bf46b4337a5093 -- llvm/include/llvm/BinaryFormat/DXContainer.h llvm/lib/MC/MCDXContainerWriter.cpp llvm/tools/llc/llc.cpp llvm/unittests/Object/DXContainerTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/unittests/Object/DXContainerTest.cpp b/llvm/unittests/Object/DXContainerTest.cpp
index 28df845781..098da331ab 100644
--- a/llvm/unittests/Object/DXContainerTest.cpp
+++ b/llvm/unittests/Object/DXContainerTest.cpp
@@ -130,7 +130,7 @@ TEST(DXCFile, ParseOverlappingParts) {
 // This test is based on the binary output constructed from this yaml.
 // --- !dxcontainer
 // Header:
-//   Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
+//   Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
 //                      0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
 //   Version:
 //     Major:           1
@@ -522,7 +522,7 @@ TEST(DXCFile, MaliciousFiles) {
 //
 // --- !dxcontainer
 // Header:
-//   Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
+//   Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
 //                      0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
 //   Version:
 //     Major:           1

``````````

</details>


https://github.com/llvm/llvm-project/pull/91506


More information about the llvm-commits mailing list