[libc-commits] [libc] [libc][newhdrgen] Fix NameError in yaml_to_classes.py (PR #114952)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 5 00:30:19 PST 2024
https://github.com/overmighty created https://github.com/llvm/llvm-project/pull/114952
Fixes "NameError: name 'yaml_file' is not defined" that would be raised
whenever running yaml_to_classes.py with the --add_function option since
commit 2e6d451d1565814415e2692ef8e5c3942d4c11a2.
>From 07c1c1bf48b6947933a14768030097cebc6a5745 Mon Sep 17 00:00:00 2001
From: OverMighty <its.overmighty at gmail.com>
Date: Tue, 5 Nov 2024 09:22:29 +0100
Subject: [PATCH] [libc][newhdrgen] Fix NameError in yaml_to_classes.py
Fixes "NameError: name 'yaml_file' is not defined" that would be raised
whenever running yaml_to_classes.py with the --add_function option since
commit 2e6d451d1565814415e2692ef8e5c3942d4c11a2.
---
libc/newhdrgen/yaml_to_classes.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/newhdrgen/yaml_to_classes.py b/libc/newhdrgen/yaml_to_classes.py
index a295058f7dc821..0e8ca2d8a82b0c 100644
--- a/libc/newhdrgen/yaml_to_classes.py
+++ b/libc/newhdrgen/yaml_to_classes.py
@@ -253,7 +253,7 @@ def main():
args = parser.parse_args()
if args.add_function:
- add_function_to_yaml(yaml_file, args.add_function)
+ add_function_to_yaml(args.yaml_file, args.add_function)
header_class = GpuHeader if args.export_decls else HeaderFile
header = load_yaml_file(args.yaml_file, header_class, args.entry_points)
More information about the libc-commits
mailing list