intel/clc: Free parsed_spirv_data

This declaration shadowed a variable by the same type and name in an
outer scope. That variable is passed to clc_free_parsed_spirv().

Fixes: 4fd7495c69 ("intel/clc: add ability to output NIR")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30313>
(cherry picked from commit 1574372de4)
This commit is contained in:
Matt Turner 2024-07-22 20:32:55 -04:00 committed by Eric Engestrom
parent ec61b755a4
commit 2a62cfc73f
2 changed files with 1 additions and 2 deletions

View file

@ -1754,7 +1754,7 @@
"description": "intel/clc: Free parsed_spirv_data",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "4fd7495c693818e0823b100df0e0607e448a29fe",
"notes": null

View file

@ -660,7 +660,6 @@ int main(int argc, char **argv)
goto fail;
}
struct clc_parsed_spirv parsed_spirv_data;
if (!clc_parse_spirv(&spirv_obj, &logger, &parsed_spirv_data))
goto fail;