diff dmd2/statement.c @ 953:5fa3e0ea06e9

Merged a bunch recent dmd v1 frontend changes into the dmd v2 tree.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Fri, 13 Feb 2009 22:20:30 +0100
parents 03d7c4aac654
children 638d16625da2
line wrap: on
line diff
--- a/dmd2/statement.c	Thu Feb 12 18:39:14 2009 +0100
+++ b/dmd2/statement.c	Fri Feb 13 22:20:30 2009 +0100
@@ -2198,12 +2198,6 @@
 	condition = condition->semantic(scd);
     }
 
-    // LDC
-    else if (ident == Id::allow_inline)
-    {
-        sc->func->allowInlining = true;
-    }
-
     else
 	scd = sc->push();
     ifbody = ifbody->semantic(scd);
@@ -2478,6 +2472,13 @@
 	    return this;
 	}
     }
+
+    // LDC
+    else if (ident == Id::allow_inline)
+    {
+        sc->func->allowInlining = true;
+    }
+
     else
         error("unrecognized pragma(%s)", ident->toChars());