diff gen/typinf.c @ 57:a9d29e9f1fed trunk

[svn r61] Added support for D-style variadic functions :)
author lindquist
date Thu, 25 Oct 2007 02:39:53 +0200
parents 28e99b04a132
children 2c3cd3596187
line wrap: on
line diff
--- a/gen/typinf.c	Wed Oct 24 22:26:37 2007 +0200
+++ b/gen/typinf.c	Thu Oct 25 02:39:53 2007 +0200
@@ -223,10 +223,10 @@
  * Used to supply hidden _arguments[] value for variadic D functions.
  */
 
-Expression *createTypeInfoArray(Scope *sc, Expression *args[], int dim)
+Expression *createTypeInfoArray(Scope *sc, Expression *exps[], int dim)
 {
     assert(0);
-    return 0;
+    return NULL;
 }
 
 /* ========================================================================= */
@@ -237,13 +237,13 @@
 
 void TypeInfoDeclaration::toObjFile()
 {
+    if (llvmTouched) return;
+    else llvmTouched = true;
+
     Logger::println("TypeInfoDeclaration::toObjFile()");
     LOG_SCOPE;
     Logger::println("type = '%s'", tinfo->toChars());
 
-    if (llvmTouched) return;
-    else llvmTouched = true;
-
     Logger::println("typeinfo mangle: %s", mangle());
 
     if (tinfo->builtinTypeInfo()) {