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 26ab444e88fc8fdd554e5a9381a68b7b5e63b6fd 
700376a265e3f349f5faece740e1823a2f19930c -- clang/lib/CodeGen/CGDecl.cpp 
clang/test/CodeGenCXX/auto-var-init.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 9761ae4726dc..070a5e0a43e1 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -1254,8 +1254,8 @@ static void emitStoresForConstant(CodeGenModule &CGM, 
const VarDecl &D,
             CGM, D, EltPtr, isVolatile, Builder,
             cast<llvm::Constant>(Builder.CreateExtractValue(constant, i)),
             IsAutoInit);
-        }
-        return;
+      }
+      return;
     } else if (auto *ATy = dyn_cast<llvm::ArrayType>(Ty)) {
       // FIXME: handle the case when ATy != Loc.getElementType().
       if (ATy == Loc.getElementType()) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/71677
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to