reg_alloc: Correct OpArg::setBit for Reg

This commit is contained in:
MerryMage 2016-08-26 15:23:38 +01:00
parent 065c53ebfc
commit 59a8e14d1c
3 changed files with 26 additions and 3 deletions

View file

@ -191,7 +191,8 @@ HostLoc RegAlloc::UseHostLocReg(IR::Inst* use_inst, HostLocList desired_location
OpArg RegAlloc::UseOpArg(IR::Value use_value, HostLocList desired_locations) {
if (use_value.IsImmediate()) {
return Xbyak::Operand(); // return a None
ASSERT_MSG(false, "UseOpArg does not support immediates");
return {}; // return a None
}
IR::Inst* use_inst = use_value.GetInst();