[llvm] ff30d01 - [TLI] fix a function's (commented) signature; NFC
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 13:07:19 PDT 2020
Author: George Burgess IV
Date: 2020-04-07T13:04:54-07:00
New Revision: ff30d015222e2b6fada6c649bb228167a9343314
URL: https://github.com/llvm/llvm-project/commit/ff30d015222e2b6fada6c649bb228167a9343314
DIFF: https://github.com/llvm/llvm-project/commit/ff30d015222e2b6fada6c649bb228167a9343314.diff
LOG: [TLI] fix a function's (commented) signature; NFC
__strlen_chk returns a `size_t`, not a `char *`.
Added:
Modified:
llvm/include/llvm/Analysis/TargetLibraryInfo.def
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.def b/llvm/include/llvm/Analysis/TargetLibraryInfo.def
index b5688cecc4ad..f782c56d96a5 100644
--- a/llvm/include/llvm/Analysis/TargetLibraryInfo.def
+++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.def
@@ -434,7 +434,7 @@ TLI_DEFINE_STRING_INTERNAL("__strlcat_chk")
/// size_t dstsize);
TLI_DEFINE_ENUM_INTERNAL(strlcpy_chk)
TLI_DEFINE_STRING_INTERNAL("__strlcpy_chk")
-/// char *__strlen_chk(const char *s1, size_t s1size);
+/// size_t __strlen_chk(const char *s1, size_t s1size);
TLI_DEFINE_ENUM_INTERNAL(strlen_chk)
TLI_DEFINE_STRING_INTERNAL("__strlen_chk")
/// char *strncat_chk(char *s1, const char *s2, size_t n, size_t s1size);
More information about the llvm-commits
mailing list