r600/sfn: Fix null pointer deref in live range evalation

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4609>
This commit is contained in:
Gert Wollny 2020-04-12 16:43:23 +02:00 committed by Marge Bot
parent 5d10e3ec60
commit de7ea88ff8

View file

@ -120,7 +120,8 @@ void Instruction::remap_registers(ValueRemapper& map)
void Instruction::add_remappable_src_value(PValue *v)
{
m_mappable_src_registers.push_back(v);
if (*v)
m_mappable_src_registers.push_back(v);
}
void Instruction::add_remappable_src_value(GPRVector *v)
@ -130,7 +131,8 @@ void Instruction::add_remappable_src_value(GPRVector *v)
void Instruction::add_remappable_dst_value(PValue *v)
{
m_mappable_dst_registers.push_back(v);
if (v)
m_mappable_dst_registers.push_back(v);
}
void Instruction::add_remappable_dst_value(GPRVector *v)