Message ID | 20231024103000.3334790-2-richard.sandiford@arm.com |
---|---|
State | New |
Headers | show |
Series | rtl-ssa: Some small, obvious fixes | expand |
diff --git a/gcc/rtl-ssa/member-fns.inl b/gcc/rtl-ssa/member-fns.inl index c127fab8b98..3fdca14e0ef 100644 --- a/gcc/rtl-ssa/member-fns.inl +++ b/gcc/rtl-ssa/member-fns.inl @@ -215,7 +215,7 @@ set_info::last_nondebug_insn_use () const inline use_info * set_info::first_any_insn_use () const { - if (m_first_use->is_in_any_insn ()) + if (m_first_use && m_first_use->is_in_any_insn ()) return m_first_use; return nullptr; }