mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 14:40:40 +03:00
Merge branch 'master' into merge-2.067
This commit is contained in:
commit
7159aa5392
4 changed files with 38 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue