]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/omp-low.c
[6/77] Make GET_MODE_WIDER return an opt_mode
[thirdparty/gcc.git] / gcc / omp-low.c
index a36e5f9cbc04ae571da8ced5679835ce0c4f70b0..5deb5398c75308441eb91a9e73cbddf62d1621e6 100644 (file)
@@ -3456,8 +3456,8 @@ omp_clause_aligned_alignment (tree clause)
          continue;
        while (vs
               && GET_MODE_SIZE (vmode) < vs
-              && GET_MODE_2XWIDER_MODE (vmode) != VOIDmode)
-         vmode = GET_MODE_2XWIDER_MODE (vmode);
+              && GET_MODE_2XWIDER_MODE (vmode).exists ())
+         vmode = GET_MODE_2XWIDER_MODE (vmode).require ();
 
        tree type = lang_hooks.types.type_for_mode (mode, 1);
        if (type == NULL_TREE || TYPE_MODE (type) != mode)