[clang] [clang][Sema][SYCL] Fix MSVC STL usage on AMDGPU (PR #135979)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 16 08:46:51 PDT 2025


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 HEAD~1 HEAD --extensions hpp,cpp -- clang/test/SemaSYCL/Inputs/vectorcall.hpp clang/test/SemaSYCL/sycl-cconv-win.cpp clang/lib/Sema/SemaDeclAttr.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index bccc3406a..3594111d8 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -5522,9 +5522,8 @@ bool Sema::CheckCallingConvAttr(const ParsedAttr &Attrs, CallingConv &CC,
       A = HostTI->checkCallingConvention(CC);
     if (A == TargetInfo::CCCR_OK && CheckDevice && DeviceTI)
       A = DeviceTI->checkCallingConvention(CC);
-  } else if (LangOpts.SYCLIsDevice &&
-             TI.getTriple().isAMDGPU() &&
-	     CC == CC_X86VectorCall) {
+  } else if (LangOpts.SYCLIsDevice && TI.getTriple().isAMDGPU() &&
+             CC == CC_X86VectorCall) {
     A = TI.checkCallingConvention(CC);
     if (Aux && A != TargetInfo::CCCR_OK)
       A = Aux->checkCallingConvention(CC);

``````````

</details>


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


More information about the cfe-commits mailing list