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 origin/main HEAD --extensions cpp,c -- 
clang/test/CodeGenSPIRV/Builtins/subgroup.c 
clang/test/SemaSPIRV/BuiltIns/subgroup-errors.c 
clang/lib/CodeGen/TargetBuiltins/SPIR.cpp clang/lib/Sema/SemaSPIRV.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaSPIRV.cpp b/clang/lib/Sema/SemaSPIRV.cpp
index 28bc7d144..8c2af5053 100644
--- a/clang/lib/Sema/SemaSPIRV.cpp
+++ b/clang/lib/Sema/SemaSPIRV.cpp
@@ -385,7 +385,7 @@ bool SemaSPIRV::CheckSPIRVBuiltinFunctionCall(const 
TargetInfo &TI,
       return true;
 
     ExprResult A =
-      SemaRef.DefaultFunctionArrayLvalueConversion(TheCall->getArg(0));
+        SemaRef.DefaultFunctionArrayLvalueConversion(TheCall->getArg(0));
     if (A.isInvalid())
       return true;
     TheCall->setArg(0, A.get());
@@ -399,7 +399,7 @@ bool SemaSPIRV::CheckSPIRVBuiltinFunctionCall(const 
TargetInfo &TI,
     }
 
     ExprResult B =
-      SemaRef.DefaultFunctionArrayLvalueConversion(TheCall->getArg(1));
+        SemaRef.DefaultFunctionArrayLvalueConversion(TheCall->getArg(1));
     if (B.isInvalid())
       return true;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/174655
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to