https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125621
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Looks like a typo:
```
diff --git a/gcc/expmed.cc b/gcc/expmed.cc
index 3e8a6affde7..611fa178750 100644
--- a/gcc/expmed.cc
+++ b/gcc/expmed.cc
@@ -5509,7 +5509,7 @@ make_tree (tree type, rtx x)
default:
if (CONST_POLY_INT_P (x))
- return wide_int_to_tree (t, const_poly_int_value (x));
+ return wide_int_to_tree (type, const_poly_int_value (x));
t = build_decl (RTL_LOCATION (x), VAR_DECL, NULL_TREE, type);
```
If that fixes it, that is pre-approved.