]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ipa-reference.c
invoke.texi (-fvar-tracking-assignments): New.
[thirdparty/gcc.git] / gcc / ipa-reference.c
index db63d02554fc7c0f41ada776ce3c540ee33afb06..10daf56eab6a660ec1b9610060e0f3321a18962e 100644 (file)
@@ -442,6 +442,9 @@ scan_stmt_for_static_refs (gimple_stmt_iterator *gsip,
   gimple stmt = gsi_stmt (*gsip);
   ipa_reference_local_vars_info_t local = NULL;
 
+  if (is_gimple_debug (stmt))
+    return NULL;
+
   if (fn)
     local = get_reference_vars_info (fn)->local;