# HG changeset patch # User Jan Vrany # Date 1434387644 -3600 # Node ID 602215b19135defcbe8032c9e5ae69512050d57e # Parent 0dd7eb52b5a1abf89ed194919a45f7b9c5fa9638 Fix in codegen: fixed compilation of unknown node: do not hardcode return variable name ...use `self retvalVar` instead diff -r 0dd7eb52b5a1 -r 602215b19135 compiler/PPCCodeGenerator.st --- a/compiler/PPCCodeGenerator.st Mon Jun 15 17:47:38 2015 +0100 +++ b/compiler/PPCCodeGenerator.st Mon Jun 15 18:00:44 2015 +0100 @@ -934,10 +934,12 @@ compiler codeClearError. compiler add: '(', self retvalVar, ' := ', id, ' parseOn: context) isPetitFailure'. compiler indent. - compiler add: ' ifTrue: [self error: retval message at: ', self retvalVar, ' position ].'. + compiler add: ' ifTrue: [self error: ', self retvalVar, ' message at: ', self retvalVar, ' position ].'. compiler dedent. compiler add: 'error := ', self retvalVar, ' isPetitFailure.'. compiler codeReturn. + + "Modified: / 15-06-2015 / 17:59:23 / Jan Vrany " ! ! !PPCCodeGenerator class methodsFor:'documentation'!