diff gen/d-asm-i386.h @ 384:3f98d46e05a4

Fixed segfault when using va_arg. Fixed segfault when accessing function symbols from inline asm.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 23 Jul 2008 20:21:18 +0200
parents 0baca2feb554
children e04389bafb3e
line wrap: on
line diff
--- a/gen/d-asm-i386.h	Wed Jul 23 18:53:44 2008 +0200
+++ b/gen/d-asm-i386.h	Wed Jul 23 20:21:18 2008 +0200
@@ -2036,7 +2036,9 @@
 	    }
 	} else if (exp->op == TOKvar) {
 	    VarDeclaration * v = ((VarExp *) exp)->var->isVarDeclaration();
-        v->needsStorage = true;
+        if (v) {
+            v->needsStorage = true;
+        }
 
 	    if (v && v->storage_class & STCfield) {
 		operand->constDisplacement += v->offset;