diff ir/irlandingpad.cpp @ 758:f04dde6e882c

Added initial D2 support, D2 frontend and changes to codegen to make things compile.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 11 Nov 2008 01:38:48 +0100
parents 5761d7e6f628
children 3d1b16dabd25
line wrap: on
line diff
--- a/ir/irlandingpad.cpp	Mon Nov 10 20:55:24 2008 +0100
+++ b/ir/irlandingpad.cpp	Tue Nov 11 01:38:48 2008 +0100
@@ -17,7 +17,11 @@
     if(catchstmt->var) {
         // use the same storage for all exceptions that are not accessed in
         // nested functions
+    #if DMDV2
+        if(!catchstmt->var->nestedrefs.dim) {
+    #else
         if(!catchstmt->var->nestedref) {
+    #endif
             assert(!catchstmt->var->ir.irLocal);
             catchstmt->var->ir.irLocal = new IrLocal(catchstmt->var);
             LLValue* catch_var = gIR->func()->landingPad.getExceptionStorage();