Fix double-swap in constant load
This commit is contained in:
parent
82fe65475e
commit
873016f06f
|
@ -197,8 +197,8 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) {
|
|||
// Memory is readonly - can just return the value.
|
||||
switch (v->type) {
|
||||
case INT32_TYPE:
|
||||
v->set_constant(xe::load_and_swap<uint32_t>(
|
||||
memory->TranslateVirtual(address)));
|
||||
v->set_constant(
|
||||
xe::load<uint32_t>(memory->TranslateVirtual(address)));
|
||||
i->Remove();
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue