mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
7188276: JSR 292: assert(ct == T_OBJECT) failed: rt=T_OBJECT, ct=13
Reviewed-by: kvn, jrose
This commit is contained in:
parent
ebeff89a89
commit
e409ee94ae
1 changed files with 3 additions and 3 deletions
|
@ -523,10 +523,10 @@ void Parse::do_call() {
|
||||||
retnode = _gvn.transform( new (C, 3) LShiftINode(retnode, intcon(16)) );
|
retnode = _gvn.transform( new (C, 3) LShiftINode(retnode, intcon(16)) );
|
||||||
retnode = _gvn.transform( new (C, 3) RShiftINode(retnode, intcon(16)) );
|
retnode = _gvn.transform( new (C, 3) RShiftINode(retnode, intcon(16)) );
|
||||||
} else {
|
} else {
|
||||||
assert(ct == T_INT, err_msg_res("rt=%d, ct=%d", rt, ct));
|
assert(ct == T_INT, err_msg_res("rt=%s, ct=%s", type2name(rt), type2name(ct)));
|
||||||
}
|
}
|
||||||
} else if (rt == T_OBJECT) {
|
} else if (rt == T_OBJECT || rt == T_ARRAY) {
|
||||||
assert(ct == T_OBJECT, err_msg_res("rt=T_OBJECT, ct=%d", ct));
|
assert(ct == T_OBJECT || ct == T_ARRAY, err_msg_res("rt=%s, ct=%s", type2name(rt), type2name(ct)));
|
||||||
if (ctype->is_loaded()) {
|
if (ctype->is_loaded()) {
|
||||||
Node* if_fail = top();
|
Node* if_fail = top();
|
||||||
retnode = gen_checkcast(retnode, makecon(TypeKlassPtr::make(ctype->as_klass())), &if_fail);
|
retnode = gen_checkcast(retnode, makecon(TypeKlassPtr::make(ctype->as_klass())), &if_fail);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue