Skip to content

Commit

Permalink
WIP: Alternative fix which seems to be working
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed May 5, 2019
1 parent 389ebab commit 4abc18c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions dmd/expression.d
Original file line number Diff line number Diff line change
Expand Up @@ -2219,11 +2219,6 @@ extern (C++) class ThisExp : Expression
//printf("ThisExp::ThisExp() loc = %d\n", loc.linnum);
}

override Expression syntaxCopy()
{
return new ThisExp(loc);
}

override final bool isBool(bool result)
{
return result;
Expand Down
1 change: 0 additions & 1 deletion dmd/expression.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ class ThisExp : public Expression
public:
VarDeclaration *var;

Expression *syntaxCopy();
bool isBool(bool result);
bool isLvalue();
Expression *toLvalue(Scope *sc, Expression *e);
Expand Down
2 changes: 1 addition & 1 deletion dmd/expressionsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
{
printf("ThisExp::semantic()\n");
}
if (e.type)
if (!IN_LLVM && e.type)
{
result = e;
return;
Expand Down

0 comments on commit 4abc18c

Please sign in to comment.