[llvm] [llvm-c][documentation] fix typo in `LLVMSizeOfTypeInBits` (PR #100839)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 16:51:25 PDT 2024


https://github.com/wr7 created https://github.com/llvm/llvm-project/pull/100839

`LLVMSizeOfTypeInBits`'s documentation says `Computes the size of a type in bytes for a target` which is false

>From 7489bfdd151121ba1f0b8d1a08ec34212d663b8e Mon Sep 17 00:00:00 2001
From: wr7 <d-wr7 at outlook.com>
Date: Fri, 26 Jul 2024 18:43:53 -0500
Subject: [PATCH] [llvm-c] fix typo in `LLVMSizeOfTypeInBits`

---
 llvm/include/llvm-c/Target.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h
index 518b46d55bc3c..aef06a5f2486d 100644
--- a/llvm/include/llvm-c/Target.h
+++ b/llvm/include/llvm-c/Target.h
@@ -244,7 +244,7 @@ LLVMTypeRef LLVMIntPtrTypeInContext(LLVMContextRef C, LLVMTargetDataRef TD);
 LLVMTypeRef LLVMIntPtrTypeForASInContext(LLVMContextRef C, LLVMTargetDataRef TD,
                                          unsigned AS);
 
-/** Computes the size of a type in bytes for a target.
+/** Computes the size of a type in bits for a target.
     See the method llvm::DataLayout::getTypeSizeInBits. */
 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty);
 



More information about the llvm-commits mailing list