Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split off parts of single pass compiler #5526

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'origin/master' into splitOffPartsOfSing…
…lePassCompiler
  • Loading branch information
keyboardDrummer committed Jun 4, 2024
commit 3fe2efdca602c72b288c7b3ab813b0890e9f98cc
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public abstract partial class SinglePassCodeGenerator {
var e = (LambdaExpr)expr;

IVariable receiver = null;
if (enclosingMethod is { IsTailRecursive: true } || enclosingFunction is { IsTailRecursive: true }) {
if (thisContext != null && (enclosingMethod is { IsTailRecursive: true } || enclosingFunction is { IsTailRecursive: true })) {
var name = ProtectedFreshId("_this");
var ty = ModuleResolver.GetThisType(e.tok, thisContext);
receiver = new LocalVariable(RangeToken.NoToken, name, ty, false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4756,7 +4756,6 @@ private class ArrayLvalueImpl : ILvalue {
return result;
}


private void CompileTypeTest(TypeTestExpr expr, bool inLetExprBody, ConcreteSyntaxTree wr, ref ConcreteSyntaxTree wStmts) {
var fromType = expr.E.Type;
if (fromType.IsSubtypeOf(expr.ToType, false, false)) {
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.