mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
5d10e3ec60
commit
de7ea88ff8
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue