[clang] 235f1e7 - [Clang] Fix typo in __fprintf_chk Prototype (#80012)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 30 12:22:49 PST 2024


Author: Jinsong Ji
Date: 2024-01-30T15:22:45-05:00
New Revision: 235f1e74fe240e414718c64d05bafc01d34c32cb

URL: https://github.com/llvm/llvm-project/commit/235f1e74fe240e414718c64d05bafc01d34c32cb
DIFF: https://github.com/llvm/llvm-project/commit/235f1e74fe240e414718c64d05bafc01d34c32cb.diff

LOG: [Clang] Fix typo in __fprintf_chk Prototype (#80012)

An extra int was copied.

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 1af01fe0d700c..31a2bdeb2d3e5 100644
--- a/clang/include/clang/Basic/Builtins.td
+++ b/clang/include/clang/Basic/Builtins.td
@@ -1065,7 +1065,7 @@ def FPrintfChk : Builtin {
 def PrintfChk : Builtin {
   let Spellings = ["__builtin___printf_chk"];
   let Attributes = [FunctionWithBuiltinPrefix, PrintfFormat<1>];
-  let Prototype = "int(int, int, char const* restrict, ...)";
+  let Prototype = "int(int, char const* restrict, ...)";
 }
 
 def VFPrintfChk : Builtin {


        


More information about the cfe-commits mailing list