mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
gallivm: fix warning: ‘value’ may be used uninitialized in this function
The path where it's uninitialized is guarded by an assert.
This commit is contained in:
parent
e031bed122
commit
31200d0688
1 changed files with 1 additions and 1 deletions
|
|
@ -2565,7 +2565,7 @@ lp_build_system_values_array(struct gallivm_state *gallivm,
|
|||
|
||||
for (i = 0; i < info->num_system_values; i++) {
|
||||
LLVMValueRef index = lp_build_const_int32(gallivm, i * 4);
|
||||
LLVMValueRef ptr, value;
|
||||
LLVMValueRef ptr, value = 0;
|
||||
|
||||
switch (info->system_value_semantic_name[i]) {
|
||||
case TGSI_SEMANTIC_INSTANCEID:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue