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.
|
// Memory is readonly - can just return the value.
|
||||||
switch (v->type) {
|
switch (v->type) {
|
||||||
case INT32_TYPE:
|
case INT32_TYPE:
|
||||||
v->set_constant(xe::load_and_swap<uint32_t>(
|
v->set_constant(
|
||||||
memory->TranslateVirtual(address)));
|
xe::load<uint32_t>(memory->TranslateVirtual(address)));
|
||||||
i->Remove();
|
i->Remove();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue