[llvm] [IR][NFC] Assert that FunctionType::getParamType is in-bounds (PR #68887)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 06:03:24 PDT 2023
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 30240e428f0ec7d4a6d1b84f9f807ce12b46cfd1 646906a52d6aa2a3d5670bddc23929aade39de33 -- llvm/include/llvm/IR/DerivedTypes.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index 2a81f9b99..f7a09fda8 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -134,7 +134,7 @@ public:
/// Parameter type accessors.
Type *getParamType(unsigned i) const {
assert(i < getNumParams() && "getParamType() out of range!");
- return ContainedTys[i+1];
+ return ContainedTys[i + 1];
}
/// Return the number of fixed parameters this function type requires.
``````````
</details>
https://github.com/llvm/llvm-project/pull/68887
More information about the llvm-commits
mailing list