]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/semantics.c
cp-gimplify.c (cp_genericize_r): Use VAR_OR_FUNCTION_DECL_P.
[thirdparty/gcc.git] / gcc / cp / semantics.c
index 127e2da016c00192a0fce6fe90093c780f6b4cd6..333980e88e7a4bf029ecc708b1afda046bb934f4 100644 (file)
@@ -2771,8 +2771,7 @@ note_decl_for_pch (tree decl)
 
   /* There's a good chance that we'll have to mangle names at some
      point, even if only for emission in debugging information.  */
-  if ((TREE_CODE (decl) == VAR_DECL
-       || TREE_CODE (decl) == FUNCTION_DECL)
+  if (VAR_OR_FUNCTION_DECL_P (decl)
       && !processing_template_decl)
     mangle_decl (decl);
 }