aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/function-set.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/analyzer/function-set.cc')
-rw-r--r--gcc/analyzer/function-set.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/analyzer/function-set.cc b/gcc/analyzer/function-set.cc
index 6ed15ae..1b6b5d9 100644
--- a/gcc/analyzer/function-set.cc
+++ b/gcc/analyzer/function-set.cc
@@ -59,6 +59,8 @@ bool
function_set::contains_decl_p (tree fndecl) const
{
gcc_assert (fndecl && DECL_P (fndecl));
+ if (!maybe_special_function_p (fndecl))
+ return false;
return contains_name_p (IDENTIFIER_POINTER (DECL_NAME (fndecl)));
}