[llvm] 9baf14f - [TLI] Update `getWCharSize` documentation (NFC) (#213622)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 02:32:18 PDT 2026


Author: Ömer Sinan Ağacan
Date: 2026-08-03T09:32:13Z
New Revision: 9baf14f77a632e6863c599228213620e0362c321

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

LOG: [TLI] Update `getWCharSize` documentation (NFC) (#213622)

`return 0` part of `getWCharSize` was added in cc603ee3d563 but then
removed in 5a88dffc40d2. Update the documentation as it no longer
returns 0 when the size is unknown (instead returns the default).

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/TargetLibraryInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.h b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
index 629b126db17c2..cd61b925ee5d7 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.h
@@ -230,7 +230,7 @@ class TargetLibraryInfoImpl {
     ShouldSignExtI32Return = Val;
   }
 
-  /// Returns the size of the wchar_t type in bytes or 0 if the size is unknown.
+  /// Returns the size of the wchar_t type in bytes.
   /// This queries the 'wchar_size' metadata.
   LLVM_ABI unsigned getWCharSize(const Module &M) const;
 


        


More information about the llvm-commits mailing list