From 2a62cfc73f43e095bf7e8590ad555d446970322c Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 22 Jul 2024 20:32:55 -0400 Subject: [PATCH] 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: 4fd7495c693 ("intel/clc: add ability to output NIR") Part-of: (cherry picked from commit 1574372de48768e69f7ec72b2ab7273989c5e430) --- .pick_status.json | 2 +- src/intel/compiler/intel_clc.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 53f16bf3532..06c64f7a852 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/intel/compiler/intel_clc.c b/src/intel/compiler/intel_clc.c index 8bfe91b708e..be0c940f783 100644 --- a/src/intel/compiler/intel_clc.c +++ b/src/intel/compiler/intel_clc.c @@ -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;