[clang] [Clang] Fix typo 'dereferencable' to 'dereferenceable' (PR #116761)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 18 23:55:47 PST 2024
https://github.com/kordood created https://github.com/llvm/llvm-project/pull/116761
This patch corrects the typo 'dereferencable' to 'dereferenceable' in CGCall.cpp.
The typo is located within a comment inside the `void CodeGenModule::ConstructAttributeList` function.
>From 462fd333d9986e60d769a04abdfc56a1e8051538 Mon Sep 17 00:00:00 2001
From: Liberty <gigacms at gmail.com>
Date: Tue, 19 Nov 2024 16:51:16 +0900
Subject: [PATCH] [Clang] Fix typo 'dereferencable' to 'dereferenceable'
---
clang/lib/CodeGen/CGCall.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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() &&
More information about the cfe-commits
mailing list