changeset 62:6557375aff35

InExp.opId_r WhileStatement.syntaxCopy
author korDen
date Mon, 23 Aug 2010 03:21:32 +0400
parents 4ae0d790a452
children cab4c37afb89
files dmd/InExp.d dmd/TemplateInstance.d dmd/WhileStatement.d
diffstat 3 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/InExp.d	Mon Aug 23 03:01:24 2010 +0400
+++ b/dmd/InExp.d	Mon Aug 23 03:21:32 2010 +0400
@@ -70,7 +70,7 @@
 
 	Identifier opId_r()
 	{
-		assert(false);
+		return Id.opIn_r;
 	}
 
 	elem* toElem(IRState* irs)
--- a/dmd/TemplateInstance.d	Mon Aug 23 03:01:24 2010 +0400
+++ b/dmd/TemplateInstance.d	Mon Aug 23 03:21:32 2010 +0400
@@ -1404,7 +1404,8 @@
 				}
 		}
 				string p = sa.mangle();
-				buf.printf("%zu%s", p.length, p);
+				///buf.printf("%zu%s", p.length, p);
+				buf.printf("%su%s", p.length, p);
 			}
 			else if (va)
 			{
--- a/dmd/WhileStatement.d	Mon Aug 23 03:01:24 2010 +0400
+++ b/dmd/WhileStatement.d	Mon Aug 23 03:21:32 2010 +0400
@@ -26,7 +26,8 @@
 	
     Statement syntaxCopy()
 	{
-		assert(false);
+		WhileStatement s = new WhileStatement(loc, condition.syntaxCopy(), body_ ? body_.syntaxCopy() : null);
+		return s;
 	}
 	
     Statement semantic(Scope sc)