< prev index next >
src/share/vm/adlc/formssel.cpp
Print this page
rev 8116 : 8077364: "if( !this )" construct prevents build on Xcode 6.3
Reviewed-by:
*** 3390,3400 ****
//------------------------------count_instr_names------------------------------
// Count occurrences of operands names in the leaves of the instruction
// match rule.
void MatchNode::count_instr_names( Dict &names ) {
! if( !this ) return;
if( _lChild ) _lChild->count_instr_names(names);
if( _rChild ) _rChild->count_instr_names(names);
if( !_lChild && !_rChild ) {
uintptr_t cnt = (uintptr_t)names[_name];
cnt++; // One more name found
--- 3390,3400 ----
//------------------------------count_instr_names------------------------------
// Count occurrences of operands names in the leaves of the instruction
// match rule.
void MatchNode::count_instr_names( Dict &names ) {
! if( this == NULL ) return;
if( _lChild ) _lChild->count_instr_names(names);
if( _rChild ) _rChild->count_instr_names(names);
if( !_lChild && !_rChild ) {
uintptr_t cnt = (uintptr_t)names[_name];
cnt++; // One more name found
< prev index next >