nvc0/ir: Initialize SchedDataCalculator members in constructor.
Fix defects reported by Coverity Scan. uninit_member: Non-static class member score is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member prevData is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member prevOp is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8604>
This commit is contained in:
parent
8f1c6f36ec
commit
09e421846d
|
@ -3022,7 +3022,8 @@ CodeEmitterNVC0::getMinEncodingSize(const Instruction *i) const
|
|||
class SchedDataCalculator : public Pass
|
||||
{
|
||||
public:
|
||||
SchedDataCalculator(const Target *targ) : targ(targ) { }
|
||||
SchedDataCalculator(const Target *targ) : score(NULL), prevData(0),
|
||||
prevOp(OP_NOP), targ(targ) { }
|
||||
|
||||
private:
|
||||
struct RegScores
|
||||
|
|
Loading…
Reference in New Issue