Merge branch 'master' into merge-2.067

This commit is contained in:
Kai Nacke 2015-04-16 07:27:09 +02:00
commit 7159aa5392
4 changed files with 38 additions and 12 deletions

View file

@ -1532,11 +1532,15 @@ size_t realignOffset(size_t offset, Type* type)
//////////////////////////////////////////////////////////////////////////////////////////
Type * stripModifiers( Type * type )
Type * stripModifiers(Type * type, bool transitive)
{
if (type->ty == Tfunction)
return type;
return type->castMod(0);
if (transitive)
return type->unqualify(MODimmutable | MODconst | MODwild);
else
return type->castMod(0);
}
//////////////////////////////////////////////////////////////////////////////////////////