Skip to content

Commit

Permalink
[opt-viewer] Use safe yaml load_all
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D112075
  • Loading branch information
kongy committed Oct 21, 2021
1 parent cb11ddb commit 1123e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/opt-viewer/optrecord.py
Expand Up @@ -274,7 +274,7 @@ def get_remarks(input_file, filter_=None):
file_remarks = defaultdict(functools.partial(defaultdict, list))

with io.open(input_file, encoding = 'utf-8') as f:
docs = yaml.load_all(f, Loader=Loader)
docs = yaml.safe_load_all(f, Loader=Loader)

filter_e = None
if filter_:
Expand Down

0 comments on commit 1123e03

Please sign in to comment.