Revert "[opt-viewer] Use safe yaml load_all"
authorYi Kong <yikong@google.com>
Mon, 1 Nov 2021 09:14:19 +0000 (17:14 +0800)
committerYi Kong <yikong@google.com>
Mon, 1 Nov 2021 09:18:49 +0000 (17:18 +0800)
This reverts commit 1123e03a9d9401c5203ae55bff533dd4d133d8d2.

Broken on the AIX platform.

llvm/tools/opt-viewer/optrecord.py

index bd5ef6c..6a53e13 100644 (file)
@@ -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.safe_load_all(f, Loader=Loader)
+        docs = yaml.load_all(f, Loader=Loader)
 
         filter_e = None
         if filter_: