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,h -- 
clang/include/clang/CIR/MissingFeatures.h 
clang/lib/CIR/CodeGen/CIRGenException.cpp 
clang/lib/CIR/CodeGen/CIRGenModule.cpp clang/lib/CIR/Dialect/IR/CIRDialect.cpp 
clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.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/CIRGenException.cpp 
b/clang/lib/CIR/CodeGen/CIRGenException.cpp
index 53165bf3d..3a229d4b5 100644
--- a/clang/lib/CIR/CodeGen/CIRGenException.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenException.cpp
@@ -185,15 +185,15 @@ const EHPersonality &EHPersonality::get(CIRGenFunction 
&cgf) {
   return get(cgf.cgm, dyn_cast_or_null<FunctionDecl>(fg));
 }
 
-static llvm::StringRef 
-getPersonalityFn(CIRGenModule &cgm, const EHPersonality &personality) {
+static llvm::StringRef getPersonalityFn(CIRGenModule &cgm,
+                                        const EHPersonality &personality) {
   // Create the personality function type: i32 (...)
   mlir::Type i32Ty = cgm.getBuilder().getI32Type();
   auto funcTy = cir::FuncType::get({}, i32Ty, /*isVarArg=*/true);
-  
+
   cir::FuncOp personalityFn = cgm.createRuntimeFunction(
       funcTy, personality.personalityFn, mlir::ArrayAttr(), /*isLocal=*/true);
-  
+
   return personalityFn.getSymName();
 }
 
@@ -653,7 +653,7 @@ void 
CIRGenFunction::populateCatchHandlersIfRequired(cir::TryOp tryOp) {
   assert(!ehStack.empty());
 
   const EHPersonality &personality = EHPersonality::get(*this);
-  
+
   // Set personality function if not already set
   auto funcOp = mlir::cast<cir::FuncOp>(curFn);
   if (!funcOp.getPersonality())
diff --git a/clang/lib/CIR/Dialect/IR/CIRDialect.cpp 
b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
index c5f19ab58..61f385028 100644
--- a/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+++ b/clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -1946,7 +1946,8 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, 
OperationState &state) {
     mlir::StringAttr personalityAttr;
     if (parser.parseOptionalSymbolName(personalityAttr).failed())
       return failure();
-    state.addAttribute(personalityNameAttr, 
FlatSymbolRefAttr::get(personalityAttr));
+    state.addAttribute(personalityNameAttr,
+                       FlatSymbolRefAttr::get(personalityAttr));
     if (parser.parseRParen().failed())
       return failure();
   }

``````````

</details>


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

Reply via email to