Skip to content
Snippets Groups Projects
Verified Commit a8d6b523 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

fix None[1] assignment bug

parent a4ee54ac
No related branches found
No related tags found
No related merge requests found
Pipeline #523 passed with warnings with stages
in 11 minutes and 56 seconds
...@@ -450,6 +450,8 @@ public class CodeGenImpl extends CodeGenBase { ...@@ -450,6 +450,8 @@ public class CodeGenImpl extends CodeGenBase {
betterBackend.emitPop(tmpReg, "restore value to assign"); betterBackend.emitPop(tmpReg, "restore value to assign");
backend.emitBEQZ(listReg, errorNone, "Assign list element: Exception: NullPointerException");
emitSetListElement(listReg, indexReg, lenReg, elementReg); emitSetListElement(listReg, indexReg, lenReg, elementReg);
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment