mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Cleaner way to set the mask for -Wunused-component
This commit is contained in:
parent
17c0812ae4
commit
a5636899f2
1 changed files with 1 additions and 1 deletions
2
ir.cpp
2
ir.cpp
|
@ -638,7 +638,7 @@ bool ir_function_finalize(ir_function *self)
|
|||
// claiming it's unused, otherwise skip the vector entierly
|
||||
if (v->m_vtype == TYPE_VECTOR)
|
||||
{
|
||||
size_t mask = (1 << 0) | (1 << 1) | (1 << 2), bits = 0;
|
||||
size_t mask = (1 << 3) - 1, bits = 0;
|
||||
for (size_t i = 0; i < 3; i++)
|
||||
if (!v->m_members[i] || (v->m_members[i]->m_reads.empty()
|
||||
&& v->m_members[i]->m_writes.size()))
|
||||
|
|
Loading…
Reference in a new issue