diff gen/llvmhelpers.cpp @ 1279:04c36605feb9

Fixed array operation codegen when used from imported templates. All array operations are now emitted with template linkage. Fixed #270 .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Wed, 29 Apr 2009 18:59:39 +0200
parents 8fb39f7f1a7c
children 15e9762bb620
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Wed Apr 29 18:39:59 2009 +0200
+++ b/gen/llvmhelpers.cpp	Wed Apr 29 18:59:39 2009 +0200
@@ -1352,6 +1352,12 @@
 
 bool mustDefineSymbol(Dsymbol* s)
 {
+    if (FuncDeclaration* fd = s->isFuncDeclaration())
+    {
+        if (fd->isArrayOp)
+            return true;
+    }
+
     TemplateInstance* tinst = DtoIsTemplateInstance(s);
     if (tinst)
     {