[clang] e099e7b - [Clang] Fix the signature of __builtin___stpncpy_chk
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 10:25:50 PST 2024
Author: Nikolas Klauser
Date: 2024-01-24T19:25:01+01:00
New Revision: e099e7b278c774338c7019e38fbbca9ef2c8dd74
URL: https://github.com/llvm/llvm-project/commit/e099e7b278c774338c7019e38fbbca9ef2c8dd74
DIFF: https://github.com/llvm/llvm-project/commit/e099e7b278c774338c7019e38fbbca9ef2c8dd74.diff
LOG: [Clang] Fix the signature of __builtin___stpncpy_chk
Added:
Modified:
clang/include/clang/Basic/Builtins.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/Builtins.td b/clang/include/clang/Basic/Builtins.td
index fdd1cf8221dcc76..22e616e6cde5990 100644
--- a/clang/include/clang/Basic/Builtins.td
+++ b/clang/include/clang/Basic/Builtins.td
@@ -1009,7 +1009,7 @@ def StrncpyChk : Builtin {
def StpncpyChk : Builtin {
let Spellings = ["__builtin___stpncpy_chk"];
let Attributes = [FunctionWithBuiltinPrefix, NoThrow];
- let Prototype = "int(char*, char*, char const*, size_t, size_t)";
+ let Prototype = "char*(char*, char const*, size_t, size_t)";
}
def SNPrintfChk : Builtin {
More information about the cfe-commits
mailing list