[llvm] [DirectX] remove string function attribute DXIL not allowed (PR #90778)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 12:24:13 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 465807eedcbf571d43d38e7534f38cffd5f83bec 77d48a658ceb2a2c2ff25d0a76f3a19eb83a3097 -- llvm/lib/Target/DirectX/DXILMetadata.cpp llvm/lib/Target/DirectX/DXILMetadata.h llvm/lib/Target/DirectX/DXILPrepare.cpp llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/DirectX/DXILPrepare.cpp b/llvm/lib/Target/DirectX/DXILPrepare.cpp
index e1352fa2cf..de9269b85f 100644
--- a/llvm/lib/Target/DirectX/DXILPrepare.cpp
+++ b/llvm/lib/Target/DirectX/DXILPrepare.cpp
@@ -141,7 +141,6 @@ public:
         AttrMask.addAttribute(I);
     }
 
-    
     dxil::ValidatorVersionMD ValVerMD(M);
     VersionTuple ValVer = ValVerMD.getAsVersionTuple();
     bool SkipValidation = ValVer.getMajor() == 0 && ValVer.getMinor() == 0;

``````````

</details>


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


More information about the llvm-commits mailing list