Fix double-swap in constant load

This commit is contained in:
Dr. Chat 2015-12-01 19:03:51 -06:00
parent 82fe65475e
commit 873016f06f
1 changed files with 2 additions and 2 deletions

View File

@ -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: