mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8161907: adlc: Fix crash in cisc_spill_match if _rChild == NULL
Reviewed-by: kvn
This commit is contained in:
parent
3636d8f3d5
commit
ad6ab85840
1 changed files with 2 additions and 2 deletions
|
@ -3647,14 +3647,14 @@ int MatchNode::cisc_spill_match(FormDict& globals, RegisterForm* registers, Matc
|
||||||
// Check left operands
|
// Check left operands
|
||||||
if( (_lChild == NULL) && (mRule2->_lChild == NULL) ) {
|
if( (_lChild == NULL) && (mRule2->_lChild == NULL) ) {
|
||||||
left_spillable = Maybe_cisc_spillable;
|
left_spillable = Maybe_cisc_spillable;
|
||||||
} else {
|
} else if (_lChild != NULL) {
|
||||||
left_spillable = _lChild->cisc_spill_match(globals, registers, mRule2->_lChild, operand, reg_type);
|
left_spillable = _lChild->cisc_spill_match(globals, registers, mRule2->_lChild, operand, reg_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check right operands
|
// Check right operands
|
||||||
if( (_rChild == NULL) && (mRule2->_rChild == NULL) ) {
|
if( (_rChild == NULL) && (mRule2->_rChild == NULL) ) {
|
||||||
right_spillable = Maybe_cisc_spillable;
|
right_spillable = Maybe_cisc_spillable;
|
||||||
} else {
|
} else if (_rChild != NULL) {
|
||||||
right_spillable = _rChild->cisc_spill_match(globals, registers, mRule2->_rChild, operand, reg_type);
|
right_spillable = _rChild->cisc_spill_match(globals, registers, mRule2->_rChild, operand, reg_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue