mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-01 15:02:40 +00:00
Fix GCC build
This commit is contained in:
parent
67dd111dcc
commit
1f8ef4e1f6
@ -18,7 +18,7 @@ namespace Shader::IR {
|
||||
class IREmitter {
|
||||
public:
|
||||
explicit IREmitter(Block& block_) : block{&block_}, insertion_point{block->end()} {}
|
||||
explicit IREmitter(Inst& inst)
|
||||
explicit IREmitter(IR::Inst& inst)
|
||||
: block{inst.GetParent()}, insertion_point{Block::InstructionList::s_iterator_to(inst)} {}
|
||||
explicit IREmitter(Block& block_, Block::iterator insertion_point_)
|
||||
: block{&block_}, insertion_point{insertion_point_} {}
|
||||
|
@ -253,7 +253,7 @@ SharpLocation TrackSharp(const IR::Inst* inst, const Shader::Info& info) {
|
||||
} else if (inst->GetOpcode() == IR::Opcode::ReadConst) {
|
||||
// Sharp is stored in the offset argument.
|
||||
// The vale is not inmediate if ReadConst is inside of a loop
|
||||
// and the offset is different in each iteration. (we don't support this)
|
||||
// and the base or offset is different in each iteration. (we don't support this)
|
||||
ASSERT(inst->Arg(1).IsImmediate());
|
||||
return inst->Arg(1).U32();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user