[clang] [CIR] Add is_implicit to ReturnOp (PR #174832)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 7 11:02:00 PST 2026
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,h -- clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h clang/test/CIR/CodeGen/basic.c clang/test/CIR/CodeGen/loop.cpp clang/test/CIR/CodeGen/member-functions.cpp clang/test/CIR/CodeGen/nullptr-init.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/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
index 48039747d..0447a11f0 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
@@ -352,7 +352,8 @@ void CIRGenFunction::LexicalScope::cleanup() {
insertCleanupAndLeave(curBlock);
}
-cir::ReturnOp CIRGenFunction::LexicalScope::emitReturn(mlir::Location loc, bool isImplicit) {
+cir::ReturnOp CIRGenFunction::LexicalScope::emitReturn(mlir::Location loc,
+ bool isImplicit) {
CIRGenBuilderTy &builder = cgf.getBuilder();
// If we are on a coroutine, add the coro_end builtin call.
``````````
</details>
https://github.com/llvm/llvm-project/pull/174832
More information about the cfe-commits
mailing list