summaryrefslogtreecommitdiffstats
path: root/src/util/register_allocate.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2020-01-21 15:07:24 -0800
committerMarge Bot <[email protected]>2020-01-23 01:52:43 +0000
commit4413537c80b58978f61f468a5a36d1d75756d6b3 (patch)
tree67363cae1c92d1d406bee03f5016318bc55b5c78 /src/util/register_allocate.c
parentd3eb2a0951ede3c7dcce891c3a153f3ebbb59bae (diff)
util: Remove tmp argument from BITSET_FOREACH_SET macro
Reviewed-by: Jason Ekstrand <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499>
Diffstat (limited to 'src/util/register_allocate.c')
-rw-r--r--src/util/register_allocate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index 35273630459..85453d25290 100644
--- a/src/util/register_allocate.c
+++ b/src/util/register_allocate.c
@@ -342,10 +342,9 @@ void
ra_make_reg_conflicts_transitive(struct ra_regs *regs, unsigned int r)
{
struct ra_reg *reg = &regs->regs[r];
- BITSET_WORD tmp;
int c;
- BITSET_FOREACH_SET(c, tmp, reg->conflicts, regs->count) {
+ BITSET_FOREACH_SET(c, reg->conflicts, regs->count) {
struct ra_reg *other = &regs->regs[c];
unsigned i;
for (i = 0; i < BITSET_WORDS(regs->count); i++)