Created
December 5, 2017 09:45
-
-
Save lizmat/155cc1e437f9abbd3e9421054b603099 to your computer and use it in GitHub Desktop.
diff for making let/temp use an IterationBuffer underneath
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/src/Perl6/World.nqp b/src/Perl6/World.nqp | |
index 0f61d6a..cc8de3d 100644 | |
--- a/src/Perl6/World.nqp | |
+++ b/src/Perl6/World.nqp | |
@@ -2446,7 +2446,10 @@ class Perl6::World is HLL::World { | |
$block[0].push(QAST::Op.new( | |
:op('bind'), | |
QAST::Var.new( :name($value_stash), :scope('lexical'), :decl('var') ), | |
- QAST::Op.new( :op('list') ))); | |
+ QAST::Op.new( | |
+ :op('create'), | |
+ QAST::WVal.new( :value(self.find_symbol(['IterationBuffer']))), | |
+ ))); | |
$block.symbol($value_stash, :scope('lexical')); | |
# Create a phaser block that will do the restoration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment