Skip to content
Snippets Groups Projects
Commit 00ff9627 authored by Roman Katerinenko's avatar Roman Katerinenko
Browse files

Put variable inside loop

parent 79916026
Branches
No related tags found
No related merge requests found
......@@ -90,9 +90,8 @@ public abstract class Assign extends RInvisibleBuiltinNode {
controlVisibility();
MaterializedFrame materializedFrame = virtualFrame.materialize();
FrameSlot slot = materializedFrame.getFrameDescriptor().findFrameSlot(variableName);
int i = 0;
int iterationsAmount = CompilerAsserts.compilationConstant(slotFoundOnIteration.length);
for (; i < iterationsAmount; i++) {
for (int i=0; i < iterationsAmount; i++) {
if (isAppropriateFrameSlot(slot, materializedFrame)) {
addValueToFrame(variableName, variableValue, materializedFrame, slot);
return variableValue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment