aboutsummaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index 9f0a236..309bef5 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -267,6 +267,7 @@ lhd_expand_decl (tree ARG_UNUSED (t))
const char *
lhd_decl_printable_name (tree decl, int ARG_UNUSED (verbosity))
{
+ gcc_assert (decl && DECL_NAME (decl));
return IDENTIFIER_POINTER (DECL_NAME (decl));
}