[clang] [clang] Allow 'convergent' to be a statement attribute (PR #100637)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 25 12:24:25 PDT 2024
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 52b6b1eb976341956c9c75f6572c37d445fcb332 d9de73264bf4d555e7e09a2c2687eae72c1fa19e --extensions h,cpp -- clang/lib/CodeGen/CGCall.cpp clang/lib/CodeGen/CGStmt.cpp clang/lib/CodeGen/CodeGenFunction.h clang/lib/Sema/SemaStmtAttr.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index d73feb4382..d11fe5795c 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -5638,8 +5638,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
// Add call-site convergent attribute if exists.
if (InConvergentAttributedStmt)
- Attrs =
- Attrs.addFnAttribute(getLLVMContext(), llvm::Attribute::Convergent);
+ Attrs = Attrs.addFnAttribute(getLLVMContext(), llvm::Attribute::Convergent);
// Apply some call-site-specific attributes.
// TODO: work this into building the attribute set.
``````````
</details>
https://github.com/llvm/llvm-project/pull/100637
More information about the cfe-commits
mailing list