6758234: if (k cond (a ? : b: c)) returns reversed answer if k is constant and b and c are longs

Reviewed-by: kvn, jrose
This commit is contained in:
Tom Rodriguez 2008-12-12 19:55:26 -08:00
parent 40a81c63b8
commit baa4663714
2 changed files with 40 additions and 2 deletions

View file

@ -327,8 +327,6 @@ class BlockMerger: public BlockClosure {
BlockBegin* fsux = if_->fsux();
if (swapped) {
cond = Instruction::mirror(cond);
tsux = if_->fsux();
fsux = if_->tsux();
}
BlockBegin* tblock = tval->compare(cond, con, tsux, fsux);