[llvm] TargetLibraryInfo: Use pointer index size to determine getSizeTSize(). (PR #118747)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 13:55:25 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 cfa582e8aaa791b52110791f5e6504121aaf62bf 3c0b2d55db14e1186f166b50c682704364f5b773 --extensions h,cpp -- llvm/include/llvm/Analysis/TargetLibraryInfo.h llvm/lib/Analysis/TargetLibraryInfo.cpp llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp
index c21b096b36..331f163005 100644
--- a/llvm/lib/Analysis/TargetLibraryInfo.cpp
+++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp
@@ -1461,7 +1461,7 @@ unsigned TargetLibraryInfoImpl::getWCharSize(const Module &M) const {
unsigned TargetLibraryInfoImpl::getSizeTSize(const Module &M) const {
// The maximum index size over all address spaces is a reasonable default
// guess for size_t, but it cannot in general by derived by this. Per-target
- // overrides should be added by reading the Module and/or the Triple to
+ // overrides should be added by reading the Module and/or the Triple to
// determine when this default doesn't apply.
return M.getDataLayout().getMaxIndexSizeInBits();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/118747
More information about the llvm-commits
mailing list