@@ -0,0 +1,19 @@
+
+/* PR tree-optimization/77862 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fPIC -w" } */
+
+struct paramed_type
+{
+};
+int a;
+
+int memcmp ( int*, void *, long );
+
+void
+cur_token (void)
+{
+ if ( 1 != a || memcmp ( cur_token, "", a ) )
+ return;
+ struct paramed_type b = { };
+}
@@ -843,7 +843,7 @@ static void
add_equivalence (bitmap *equiv, const_tree var)
{
unsigned ver = SSA_NAME_VERSION (var);
- value_range *vr = vr_value[ver];
+ value_range *vr = get_value_range (var);
if (*equiv == NULL)
*equiv = BITMAP_ALLOC (&vrp_equiv_obstack);