]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/hsa-gen.c
Come up with fndecl_built_in_p.
[thirdparty/gcc.git] / gcc / hsa-gen.c
index 416de933a22b57777c0340f26493c147fb42669b..69e092ec4fad2b3dffcbbbff503c6495ecd2c726 100644 (file)
@@ -5300,8 +5300,7 @@ gen_hsa_insns_for_call (gimple *stmt, hsa_bb *hbb)
       tree function_decl = gimple_call_fndecl (stmt);
       /* Prefetch pass can create type-mismatching prefetch builtin calls which
         fail the gimple_call_builtin_p test above.  Handle them here.  */
-      if (DECL_BUILT_IN_CLASS (function_decl)
-         && DECL_FUNCTION_CODE (function_decl) == BUILT_IN_PREFETCH)
+      if (fndecl_built_in_p (function_decl, BUILT_IN_PREFETCH))
        return;
 
       if (function_decl == NULL_TREE)