mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
nvc0/ir: Initialize NVC0LoweringPass member gpEmitAddress.
Fix defect reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member gpEmitAddress 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/8605>
This commit is contained in:
parent
49d77357ea
commit
8f1c6f36ec
1 changed files with 2 additions and 1 deletions
|
|
@ -883,7 +883,8 @@ NVC0LegalizePostRA::visit(BasicBlock *bb)
|
|||
return true;
|
||||
}
|
||||
|
||||
NVC0LoweringPass::NVC0LoweringPass(Program *prog) : targ(prog->getTarget())
|
||||
NVC0LoweringPass::NVC0LoweringPass(Program *prog) : targ(prog->getTarget()),
|
||||
gpEmitAddress(NULL)
|
||||
{
|
||||
bld.setProgram(prog);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue