projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8236fe1
)
[opt-viewer] Don't fail with remarks without debug location
author
Adam Nemet
<anemet@apple.com>
Mon, 14 Nov 2016 18:38:48 +0000
(18:38 +0000)
committer
Adam Nemet
<anemet@apple.com>
Mon, 14 Nov 2016 18:38:48 +0000
(18:38 +0000)
llvm-svn: 286861
llvm/utils/opt-viewer/opt-viewer.py
patch
|
blob
|
history
diff --git
a/llvm/utils/opt-viewer/opt-viewer.py
b/llvm/utils/opt-viewer/opt-viewer.py
index
ee5c7b5
..
bc30618
100755
(executable)
--- a/
llvm/utils/opt-viewer/opt-viewer.py
+++ b/
llvm/utils/opt-viewer/opt-viewer.py
@@
-275,8
+275,8
@@
for input_file in args.yaml_files:
f = open(input_file)
docs = yaml.load_all(f)
for remark in docs:
- # Avoid
duplicated remarks
- if remark.key in all_remarks:
+ # Avoid
remarks withoug debug location or if they are duplicated
+ if
not hasattr(remark, 'DebugLoc') or
remark.key in all_remarks:
continue
all_remarks[remark.key] = remark