This commit is contained in:
Hans-Kristian Arntzen 2017-03-18 10:53:55 +01:00
Родитель 7f64bc7455
Коммит 6569c6b1fc
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -1042,9 +1042,8 @@ uint64_t Compiler::get_decoration_mask(uint32_t id) const
if (get_decoration_mask(type.self) & ((1ull << DecorationBufferBlock) | (1ull << DecorationBlock))) if (get_decoration_mask(type.self) & ((1ull << DecorationBufferBlock) | (1ull << DecorationBlock)))
{ {
inherit_flags = get_buffer_block_flags(*var); inherit_flags = get_buffer_block_flags(*var);
inherit_flags &= inherit_flags &= (1ull << DecorationNonWritable) | (1ull << DecorationNonReadable) |
(1ull << DecorationNonWritable) | (1ull << DecorationNonReadable) | (1ull << DecorationAliased) | (1ull << DecorationAliased) | (1ull << DecorationRestrict);
(1ull << DecorationRestrict);
} }
return dec.decoration_flags | inherit_flags; return dec.decoration_flags | inherit_flags;