[llvm] c060457 - Revert "[opt-viewer] Use safe yaml load_all"
Yi Kong via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 1 02:19:06 PDT 2021
Author: Yi Kong
Date: 2021-11-01T17:18:49+08:00
New Revision: c060457ec6eda640ae75e48d99500712fabe1c42
URL: https://github.com/llvm/llvm-project/commit/c060457ec6eda640ae75e48d99500712fabe1c42
DIFF: https://github.com/llvm/llvm-project/commit/c060457ec6eda640ae75e48d99500712fabe1c42.diff
LOG: Revert "[opt-viewer] Use safe yaml load_all"
This reverts commit 1123e03a9d9401c5203ae55bff533dd4d133d8d2.
Broken on the AIX platform.
Added:
Modified:
llvm/tools/opt-viewer/optrecord.py
Removed:
################################################################################
diff --git a/llvm/tools/opt-viewer/optrecord.py b/llvm/tools/opt-viewer/optrecord.py
index bd5ef6c7393e9..6a53e13f4c2b8 100644
--- a/llvm/tools/opt-viewer/optrecord.py
+++ b/llvm/tools/opt-viewer/optrecord.py
@@ -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_:
More information about the llvm-commits
mailing list