[llvm] [llvm][ARM][AArch64] Don't use module attr as function attr. (PR #83154)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 16:10:44 PST 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 dfec4ef1a2ff8dc6685594813bcf14c27db9d5bc a1b36c48748c236d52f477be3fb0d8626053c406 -- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
index e8fbfc8c6e..3bf5269f27 100644
--- a/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
@@ -84,7 +84,7 @@ AArch64FunctionInfo::AArch64FunctionInfo(const Function &F,
if (F.hasFnAttribute(AttrName))
return F.getFnAttribute(AttrName).getValueAsBool();
else
- return false;
+ return false;
};
BranchTargetEnforcement = TryFnAttr("branch-target-enforcement");
``````````
</details>
https://github.com/llvm/llvm-project/pull/83154
More information about the llvm-commits
mailing list