[llvm] Attributor: Do not treat pointer vectors as valid for unsupported attributes (PR #121149)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 26 05:21: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 c7606710f93cf0ab655a5bcbbf873954051ba109 ce583126e84834fe3a48ea91606f650a8ec7f366 --extensions h -- llvm/include/llvm/Transforms/IPO/Attributor.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 01082786e2..a8ee3cd531 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -4635,8 +4635,7 @@ struct AAMemoryBehavior
/// See AbstractAttribute::isValidIRPositionForInit
static bool isValidIRPositionForInit(Attributor &A, const IRPosition &IRP) {
- if (!IRP.isFunctionScope() &&
- !IRP.getAssociatedType()->isPointerTy())
+ if (!IRP.isFunctionScope() && !IRP.getAssociatedType()->isPointerTy())
return false;
return IRAttribute::isValidIRPositionForInit(A, IRP);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/121149
More information about the llvm-commits
mailing list