Skip to content

Commit

Permalink
[libc][newhdrgen] Fix NameError in yaml_to_classes.py (#114952)
Browse files Browse the repository at this point in the history
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 2e6d451.
  • Loading branch information
overmighty authored Nov 5, 2024
1 parent 07ee870 commit 27d3e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/newhdrgen/yaml_to_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27d3e44

Please sign in to comment.