Merge pull request #450 from jodavis42/OpCopyMemoryCrash
Null crash fix in OpCopyMemory.
This commit is contained in:
commit
4d1c5ada03
@ -3244,7 +3244,7 @@ void Compiler::analyze_variable_scope(SPIRFunction &entry)
|
||||
accessed_variables_to_block[var->self].insert(current_block->self);
|
||||
|
||||
// If we store through an access chain, we have a partial write.
|
||||
if (var->self == lhs)
|
||||
if (var && var->self == lhs)
|
||||
complete_write_variables_to_block[var->self].insert(current_block->self);
|
||||
|
||||
var = compiler.maybe_get_backing_variable(rhs);
|
||||
|
Loading…
Reference in New Issue
Block a user