Added a stripModifiers() function to remove shared|const|immutable storage classes in D2 (should eventually be moved to a dhelpers file rather than llvm helpers).

Replaced a few occurances of STCinvariant with STCimmutable.
This commit is contained in:
Robert Clipsham
2009-06-18 15:44:04 +01:00
parent 348192e7e7
commit f13c5e82f5
5 changed files with 78 additions and 5 deletions

View File

@@ -54,9 +54,7 @@ unsigned DtoShouldExtend(Type* type)
const LLType* DtoType(Type* t)
{
#if DMDV2
t = t->mutableOf();
#endif
t = stripModifiers( t );
if (t->irtype)
{