Skip to content

Commit

Permalink
Merge pull request #42448 from HindujaB/fix-never-frame-error
Browse files Browse the repository at this point in the history
Fix never frame assignment throwing `NoSuchField` error
  • Loading branch information
HindujaB authored Apr 2, 2024
2 parents a950a8a + 0c9bc43 commit 7b69c3e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,9 @@ private void generateFrameClassFieldLoad(List<BIRVariableDcl> localVars, MethodV
mv.visitFieldInsn(GETFIELD, frameName, localVar.jvmVarName,
GET_BSTRING);
mv.visitVarInsn(ASTORE, index);
} else if (bType.tag == TypeTags.NEVER) {
mv.visitFieldInsn(GETFIELD, frameName, localVar.jvmVarName, GET_OBJECT);
mv.visitVarInsn(ASTORE, index);
} else if (types.isAssignable(bType, symbolTable.xmlType)) {
mv.visitFieldInsn(GETFIELD, frameName, localVar.jvmVarName,
GET_XML);
Expand Down Expand Up @@ -828,7 +831,6 @@ private void generateFrameClassFieldLoadByTypeTag(MethodVisitor mv, String frame
mv.visitVarInsn(ASTORE, index);
break;
case TypeTags.NIL:
case TypeTags.NEVER:
case TypeTags.ANY:
case TypeTags.ANYDATA:
case TypeTags.UNION:
Expand Down

0 comments on commit 7b69c3e

Please sign in to comment.