[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:59:01 PST 2024
https://github.com/kh3rld approved this pull request.
**Review:**
This change fixes the `NameError: name 'yaml_file' is not defined` in `yaml_to_classes.py` when the `--add_function` option is used. The issue, introduced in commit `2e6d451`, is resolved by correctly passing `args.yaml_file` to the `add_function_to_yaml` function instead of the undefined `yaml_file`.
**Full diff:** [PR Diff](https://github.com/llvm/llvm-project/pull/114952.diff)
**File modified:**
- `libc/newhdrgen/yaml_to_classes.py` (+1 -1)
https://github.com/llvm/llvm-project/pull/114952
More information about the libc-commits
mailing list