[clang] [Clang] Fix typo 'dereferencable' to 'dereferenceable' (PR #116761)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 18 23:56:36 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
Author: Liberty (kordood)
<details>
<summary>Changes</summary>
This patch corrects the typo 'dereferencable' to 'dereferenceable' in CGCall.cpp.
The typo is located within a comment inside the `void CodeGenModule::ConstructAttributeList` function.
---
Full diff: https://github.com/llvm/llvm-project/pull/116761.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CGCall.cpp (+1-1)
``````````diff
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 35d495d4dfab82..d22bc688193955 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2665,7 +2665,7 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
llvm::AttributeSet::get(getLLVMContext(), Attrs);
}
- // Apply `nonnull`, `dereferencable(N)` and `align N` to the `this` argument,
+ // Apply `nonnull`, `dereferenceable(N)` and `align N` to the `this` argument,
// unless this is a thunk function.
// FIXME: fix this properly, https://reviews.llvm.org/D100388
if (FI.isInstanceMethod() && !IRFunctionArgs.hasInallocaArg() &&
``````````
</details>
https://github.com/llvm/llvm-project/pull/116761
More information about the cfe-commits
mailing list