Mesa (main): aco/util: Initialize IDSet::bits_set to zero.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 20 17:43:17 UTC 2021


Module: Mesa
Branch: main
Commit: 020c3c403f0420dff9bf090e3abe2a91ea5e85f7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=020c3c403f0420dff9bf090e3abe2a91ea5e85f7

Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Fri May 14 15:57:47 2021 +0200

aco/util: Initialize IDSet::bits_set to zero.

Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10806>

---

 src/amd/compiler/aco_util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_util.h b/src/amd/compiler/aco_util.h
index 98c96857ca6..a4eb7aed2a2 100644
--- a/src/amd/compiler/aco_util.h
+++ b/src/amd/compiler/aco_util.h
@@ -346,7 +346,7 @@ struct IDSet {
    }
 
    std::vector<uint64_t> words;
-   uint32_t bits_set;
+   uint32_t bits_set = 0;
 };
 
 inline IDSet::Iterator& IDSet::Iterator::operator ++() {



More information about the mesa-commit mailing list