[clang] c4ed0ad - [Clang] Fix typo 'dereferencable' to 'dereferenceable' (#116761)

via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 8 11:35:24 PST 2025


Author: Liberty
Date: 2025-03-08T19:35:20Z
New Revision: c4ed0ad1f52a7bec7377bbaf75f812527ec739bd

URL: https://github.com/llvm/llvm-project/commit/c4ed0ad1f52a7bec7377bbaf75f812527ec739bd
DIFF: https://github.com/llvm/llvm-project/commit/c4ed0ad1f52a7bec7377bbaf75f812527ec739bd.diff

LOG: [Clang] Fix typo 'dereferencable' to 'dereferenceable' (#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.

Added: 
    

Modified: 
    clang/lib/CodeGen/CGCall.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index bfcbc273dbda7..7aa77e55dbfcc 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2705,7 +2705,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