[pkg-d-commits] [ldc] 62/149: Don't declare IfStatement::match separately anymore

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.2.0
in repository ldc.

commit e45bb9709dc4078ede4b18377e482c8af793f587
Author: Martin <noone at nowhere.com>
Date:   Sun Jan 29 22:48:31 2017 +0100

    Don't declare IfStatement::match separately anymore
    
    It's apparently rewritten to a CommaExp if-condition now:
    
    `if (auto x = ...)` => `if (auto x = ..., x)`
---
 gen/statements.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gen/statements.cpp b/gen/statements.cpp
index 87ae71e..e203f5b 100644
--- a/gen/statements.cpp
+++ b/gen/statements.cpp
@@ -332,10 +332,6 @@ public:
     irs->DBuilder.EmitBlockStart(stmt->loc);
     emitCoverageLinecountInc(stmt->loc);
 
-    if (stmt->match) {
-      DtoRawVarDeclaration(stmt->match);
-    }
-
     DValue *cond_e = toElemDtor(stmt->condition);
     LLValue *cond_val = DtoRVal(cond_e);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list