r600/sfn: Initialize TestShaderFromString member m_instr_factory.

Fix defect reported by Coverity Scan.

Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member m_instr_factory is not
initialized in this constructor nor in any functions that it calls.

Fixes: 79ca456b48 ("r600/sfn: rewrite NIR backend")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17584>
This commit is contained in:
Vinson Lee 2022-07-17 14:39:00 -07:00 committed by Marge Bot
parent 1f28d221d9
commit 6b3af02a6f
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public:
protected:
void check(const vector<PInst>& eval, const std::vector<PInst, Allocator<PInst>>& expect);
private:
InstrFactory *m_instr_factory;
InstrFactory *m_instr_factory = nullptr;
};