Skip to content

Commit

Permalink
Vivify declared variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Mar 31, 2011
1 parent 2b43930 commit ac86bda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compilers/opsc/src/Ops/JIT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ our multi method process(PAST::Var $var, %c) {

my $res := $!builder.alloca($type, :name($var.name));
%c<variables>{ $var.name } := $res;

if $var.viviself {
$!builder.store(self.process($var.viviself, %c), $res);
}
}
else {
if $var.scope eq 'register' {
Expand Down

0 comments on commit ac86bda

Please sign in to comment.