]> granicus.if.org Git - clang/commitdiff
Make this const, there's probably no harm in it and it silences a bunch
authorEric Christopher <echristo@apple.com>
Tue, 5 Apr 2011 07:54:42 +0000 (07:54 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 5 Apr 2011 07:54:42 +0000 (07:54 +0000)
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

include/clang/Basic/Builtins.def

index b73ac1f4dd458847eaa0949644ad4800539c294f..3f97b787f69088dc0f2ee090640e0249cf5acb96 100644 (file)
@@ -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")