8211219: Type inconsistency in LIRGenerator::atomic_cmpxchg(..)

Reviewed-by: eosterlund, iveresov
This commit is contained in:
Roman Kennke 2018-09-27 13:56:09 +02:00
parent 57b516dd0e
commit e77e2d1df8

View File

@ -688,7 +688,7 @@ LIR_Opr LIRGenerator::atomic_cmpxchg(BasicType type, LIR_Opr addr, LIRItem& cmp_
}
LIR_Opr result = new_register(T_INT);
__ cmove(lir_cond_equal, LIR_OprFact::intConst(1), LIR_OprFact::intConst(0),
result, type);
result, T_INT);
return result;
}