Skip to content

Commit

Permalink
Use parameter local symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
praeclarum committed Sep 1, 2022
1 parent 8bbd996 commit 968d759
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Iril/IR/FunctionDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public FunctionDefinition (LType returnType, GlobalSymbol symbol, IEnumerable<Pa
if (p.Symbol == LocalSymbol.None) {
var s = (LocalSymbol)Iril.Symbol.Intern ('%', implicitLocalCounter);
ps.Add (p.WithSymbol (s));
implicitLocalCounter++;
}
else {
ps.Add (p);
}
implicitLocalCounter++;
}

var bs = new List<Block> ();
Expand Down

0 comments on commit 968d759

Please sign in to comment.