Skip to content

Commit e099e7b

Browse files
committed
[Clang] Fix the signature of __builtin___stpncpy_chk
1 parent ed7cee9 commit e099e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/Builtins.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ def StrncpyChk : Builtin {
10091009
def StpncpyChk : Builtin {
10101010
let Spellings = ["__builtin___stpncpy_chk"];
10111011
let Attributes = [FunctionWithBuiltinPrefix, NoThrow];
1012-
let Prototype = "int(char*, char*, char const*, size_t, size_t)";
1012+
let Prototype = "char*(char*, char const*, size_t, size_t)";
10131013
}
10141014

10151015
def SNPrintfChk : Builtin {

0 commit comments

Comments
 (0)