nv50/ir: Initialize Value member id in constructor.

Fix defect reported by Coverity Scan.

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

Suggested-by: Karol Herbst <kherbst@redhat.com>
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/10401>
This commit is contained in:
Vinson Lee 2021-04-21 21:06:28 -07:00
parent 4a3269dff6
commit 6e4e6d9527
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ ValueDef::replace(const ValueRef &repVal, bool doSet)
set(repVal.get());
}
Value::Value()
Value::Value() : id(-1)
{
join = this;
memset(&reg, 0, sizeof(reg));