Mesa (main): intel/compiler: Initialize SIMDSelectionTest member error.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 3 04:35:54 UTC 2021
Module: Mesa
Branch: main
Commit: f13d486ee77c2ca8a2d27a3f42981171cd73f102
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f13d486ee77c2ca8a2d27a3f42981171cd73f102
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sat Oct 30 14:30:47 2021 -0700
intel/compiler: Initialize SIMDSelectionTest member error.
Fix defect reported by Coverity Scan.
Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member error is not initialized
in this constructor nor in any functions that it calls.
Fixes: 7558340ebb6 ("intel/compiler: Add helpers to select SIMD for compute shaders")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13608>
---
src/intel/compiler/test_simd_selection.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/compiler/test_simd_selection.cpp b/src/intel/compiler/test_simd_selection.cpp
index 6cbf9240a27..5783c328772 100644
--- a/src/intel/compiler/test_simd_selection.cpp
+++ b/src/intel/compiler/test_simd_selection.cpp
@@ -41,7 +41,7 @@ const bool not_spilled = false;
class SIMDSelectionTest : public ::testing::Test {
protected:
- SIMDSelectionTest() {
+ SIMDSelectionTest() : error{NULL, NULL, NULL} {
mem_ctx = ralloc_context(NULL);
devinfo = rzalloc(mem_ctx, intel_device_info);
prog_data = rzalloc(mem_ctx, struct brw_cs_prog_data);
More information about the mesa-commit
mailing list