Created
June 13, 2011 18:07
-
-
Save anonymous/1023329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/compilers/pct/src/PAST/Compiler.pir b/compilers/pct/src/PAST/Compiler.pir | |
index b60779f..6e8ec49 100644 | |
--- a/compilers/pct/src/PAST/Compiler.pir | |
+++ b/compilers/pct/src/PAST/Compiler.pir | |
@@ -2260,8 +2260,10 @@ attribute. | |
viviself = node.'viviself'() | |
vivipost = self.'as_vivipost'(viviself, 'rtype'=>'P') | |
ops.'push'(vivipost) | |
- ops.'push_pirop'('.lex', name, vivipost) | |
- ops.'result'(vivipost) | |
+ $S0 = self.'uniquereg'('P') | |
+ ops.'push_pirop'('set', $S0, vivipost) | |
+ ops.'push_pirop'('.lex', name, $S0) | |
+ ops.'result'($S0) | |
.return (ops) | |
lexical_bind: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment