Skip to content

Instantly share code, notes, and snippets.

Created June 13, 2011 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1023329 to your computer and use it in GitHub Desktop.
Save anonymous/1023329 to your computer and use it in GitHub Desktop.
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