nvir/gm107: Initialize SchedDataCalculatorGM107 member score.

Fix defect reported by Coverity Scan.

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

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7324>
This commit is contained in:
Vinson Lee 2020-10-26 18:26:00 -07:00 committed by Marge Bot
parent 4b65c09d86
commit 5adba503dd

View file

@ -5,7 +5,7 @@ namespace nv50_ir {
class SchedDataCalculatorGM107 : public Pass
{
public:
SchedDataCalculatorGM107(const TargetGM107 *targ) : targ(targ) {}
SchedDataCalculatorGM107(const TargetGM107 *targ) : score(NULL), targ(targ) {}
private:
struct RegScores