src/share/vm/adlc/archDesc.cpp

changeset 3051
11211f7cb5a0
parent 3040
c7b60b601eb4
child 3316
f03a3c8bd5e5
     1.1 --- a/src/share/vm/adlc/archDesc.cpp	Tue Aug 16 04:14:05 2011 -0700
     1.2 +++ b/src/share/vm/adlc/archDesc.cpp	Tue Aug 16 11:53:57 2011 -0700
     1.3 @@ -331,6 +331,11 @@
     1.4      // Find result type for match
     1.5      const char *result  = instr->reduce_result();
     1.6  
     1.7 +    if ( instr->is_ideal_branch() && instr->label_position() == -1 ||
     1.8 +        !instr->is_ideal_branch() && instr->label_position() != -1) {
     1.9 +      syntax_err(instr->_linenum, "%s: Only branches to a label are supported\n", rootOp);
    1.10 +    }
    1.11 +
    1.12      Attribute *attr = instr->_attribs;
    1.13      while (attr != NULL) {
    1.14        if (strcmp(attr->_ident,"ins_short_branch") == 0 &&

mercurial