diff options
author | Daniel Schürmann <[email protected]> | 2019-11-08 16:36:11 +0100 |
---|---|---|
committer | Rhys Perry <[email protected]> | 2019-11-12 15:59:48 +0000 |
commit | a2a6880743d7370a6425593f22d9e98317bfc3b2 (patch) | |
tree | d7230d92a8a19b99f7905b25751197483026fc1a /src/amd/compiler/aco_spill.cpp | |
parent | 5b09a7e2e48c9940fea96beb0d4ce54f99ac4e30 (diff) |
aco: fix invalid access on Pseudo_instructions
Fixes: 93c8ebfa780ebd1495095e794731881aef29e7d3 aco: Initial commit of independent AMD compiler
Reviewed-by: Rhys Perry <[email protected]>
Diffstat (limited to 'src/amd/compiler/aco_spill.cpp')
-rw-r--r-- | src/amd/compiler/aco_spill.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp index 276dcbd7c5b..952094f40d0 100644 --- a/src/amd/compiler/aco_spill.cpp +++ b/src/amd/compiler/aco_spill.cpp @@ -265,7 +265,7 @@ aco_ptr<Instruction> do_reload(spill_ctx& ctx, Temp tmp, Temp new_name, uint32_t } else if (instr->format == Format::SOP1) { res.reset(create_instruction<SOP1_instruction>(instr->opcode, instr->format, instr->operands.size(), instr->definitions.size())); } else if (instr->format == Format::PSEUDO) { - res.reset(create_instruction<Instruction>(instr->opcode, instr->format, instr->operands.size(), instr->definitions.size())); + res.reset(create_instruction<Pseudo_instruction>(instr->opcode, instr->format, instr->operands.size(), instr->definitions.size())); } for (unsigned i = 0; i < instr->operands.size(); i++) { res->operands[i] = instr->operands[i]; |