[llvm] [IR] Do not set `none` for function uwtable (PR #93387)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 25 16:41:04 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 c87a7b3bdb673747f2242ba2edc7d5b2f5b53c30 78be05f968797490558ece3f70669b494ea5fb0b -- llvm/include/llvm/IR/Function.h llvm/lib/CodeGen/MachineOutliner.cpp llvm/lib/IR/Attributes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index cc3a2ceb6d..7a3c9a99ee 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -526,8 +526,7 @@ std::string Attribute::getAsString(bool InAttrGrp) const {
if (hasAttribute(Attribute::UWTable)) {
UWTableKind Kind = getUWTableKind();
- assert(Kind != UWTableKind::None &&
- "uwtable attribute should not be none");
+ assert(Kind != UWTableKind::None && "uwtable attribute should not be none");
return Kind == UWTableKind::Default ? "uwtable" : "uwtable(sync)";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/93387
More information about the llvm-commits
mailing list