Skip to content

Commit

Permalink
emitTimesRepeat: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Dec 7, 2020
1 parent b8c53ae commit 69fc2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpalCompiler-Core/OCASTTranslator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ OCASTTranslator >> emitTimesRepeat: aMessageNode [

limitEmit := [valueTranslator visitNode: limit].
"if the limit is not just a literal or a non-writable variable, make a temp store it there"
(limit isLiteralNode or: [limit isVariable and: [limit isWritable not]]) ifFalse: [
(limit isLiteralNode or: [limit isVariable and: [limit variable isWritable not]]) ifFalse: [
valueTranslator visitNode: limit.
methodBuilder addTemp: #'0limit'.
methodBuilder storeTemp: #'0limit'.
Expand Down

0 comments on commit 69fc2f0

Please sign in to comment.