Remove early return in consteval_only_p

This commit is contained in:
Marek Polacek
2026-01-09 19:20:55 -05:00
parent 6dea0e4779
commit c34da1bfe4

View File

@@ -8087,12 +8087,6 @@ consteval_only_p (tree t)
if (!flag_reflection)
return false;
/* cp_walk_tree walks template arguments, but
std::initializer_list<std::meta::info>::size_type should be fine,
or a nullptr constant, and similar. */
if (TREE_CODE (t) == INTEGER_CST)
return false;
if (!TYPE_P (t))
t = TREE_TYPE (t);