nv50/ir: Initialize CodeEmitter members in constructor.
Fix defects reported by Coverity Scan. uninit_member: Non-static class member code is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member codeSize is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member codeSizeLimit is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member relocInfo 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/8569>
This commit is contained in:
@@ -183,7 +183,8 @@ void Target::destroy(Target *targ)
|
||||
delete targ;
|
||||
}
|
||||
|
||||
CodeEmitter::CodeEmitter(const Target *target) : targ(target), fixupInfo(NULL)
|
||||
CodeEmitter::CodeEmitter(const Target *target) : targ(target), code(NULL),
|
||||
codeSize(0), codeSizeLimit(0), relocInfo(NULL), fixupInfo(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user