From: Eric Christopher Date: Tue, 5 Apr 2011 07:54:42 +0000 (+0000) Subject: Make this const, there's probably no harm in it and it silences a bunch X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30f64714da00794cfc4179c5d5046b0c7d4cd3c0;p=clang Make this const, there's probably no harm in it and it silences a bunch of warnings when passing const arguments into the function. Fixes PR9426 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128880 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Builtins.def b/include/clang/Basic/Builtins.def index b73ac1f4dd..3f97b787f6 100644 --- a/include/clang/Basic/Builtins.def +++ b/include/clang/Basic/Builtins.def @@ -443,7 +443,7 @@ BUILTIN(__builtin_dwarf_sp_column, "Ui", "n") BUILTIN(__builtin_extend_pointer, "ULLiv*", "n") // _Unwind_Word == uint64_t // GCC Object size checking builtins -BUILTIN(__builtin_object_size, "zv*i", "n") +BUILTIN(__builtin_object_size, "zvC*i", "n") BUILTIN(__builtin___memcpy_chk, "v*v*vC*zz", "nF") BUILTIN(__builtin___memmove_chk, "v*v*vC*zz", "nF") BUILTIN(__builtin___mempcpy_chk, "v*v*vC*zz", "nF")