Mercurial > projects > ldc
comparison gen/llvmhelpers.cpp @ 934:b56f3571c450
Fixed problem with static ctors, in templated imported classes, not begin run. Fixes #203
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 04 Feb 2009 00:50:04 +0100 |
parents | 545f54041d91 |
children | 2ebac4750adb |
comparison
equal
deleted
inserted
replaced
933:d3a6f1a96731 | 934:b56f3571c450 |
---|---|
824 /****************************************************************************************/ | 824 /****************************************************************************************/ |
825 /*//////////////////////////////////////////////////////////////////////////////////////// | 825 /*//////////////////////////////////////////////////////////////////////////////////////// |
826 // TEMPLATE HELPERS | 826 // TEMPLATE HELPERS |
827 ////////////////////////////////////////////////////////////////////////////////////////*/ | 827 ////////////////////////////////////////////////////////////////////////////////////////*/ |
828 | 828 |
829 // FIXME: when is this the right one to use instead of Dsymbol::inTemplateInstance() ? | |
829 bool DtoIsTemplateInstance(Dsymbol* s) | 830 bool DtoIsTemplateInstance(Dsymbol* s) |
830 { | 831 { |
831 if (!s) return false; | 832 if (!s) return false; |
832 if (s->isTemplateInstance() && !s->isTemplateMixin()) | 833 if (s->isTemplateInstance() && !s->isTemplateMixin()) |
833 return true; | 834 return true; |