diff gen/elem.c @ 34:4648206ca213 trunk

[svn r38] * resizing dynamic arrays support * throw is replaced with assert(0) * catch is ignored * better foreach support * various bugfixes
author lindquist
date Tue, 09 Oct 2007 02:50:00 +0200
parents 37a4fdab33fc
children 8b0e809563df
line wrap: on
line diff
--- a/gen/elem.c	Thu Oct 04 22:38:53 2007 +0200
+++ b/gen/elem.c	Tue Oct 09 02:50:00 2007 +0200
@@ -34,7 +34,8 @@
         break;
 
     case VAR:
-    case REF: {
+    case REF:
+    case ARRAYLEN:
         if (val) {
             return val;
         }
@@ -52,7 +53,6 @@
                 return new llvm::LoadInst(mem, "tmp", gIR->scopebb());
             }
         }
-    }
 
     case VAL:
     case NUL: