]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/c-family/c-warn.c
Come up with fndecl_built_in_p.
[thirdparty/gcc.git] / gcc / c-family / c-warn.c
index ca259aa7bd0ca59e83d29eeae3d41d76bde221e0..95b66c1eabb41130884e2f6ab884347f58deb706 100644 (file)
@@ -702,7 +702,7 @@ sizeof_pointer_memaccess_warning (location_t *sizeof_arg_loc, tree callee,
   location_t loc;
 
   if (TREE_CODE (callee) != FUNCTION_DECL
-      || DECL_BUILT_IN_CLASS (callee) != BUILT_IN_NORMAL
+      || !fndecl_built_in_p (callee, BUILT_IN_NORMAL)
       || vec_safe_length (params) <= 1)
     return;