forked from OSchip/llvm-project
[opt-viewer] Don't except when debug info is not available.
For records without DebugLoc we simply skip the caller location in map_remarks. Fixes PR33764. Patch by Simon Whittaker! llvm-svn: 307880
This commit is contained in:
parent
bea2e188e9
commit
7876f2d34c
|
@ -178,7 +178,10 @@ def map_remarks(all_remarks):
|
|||
for arg in remark.Args:
|
||||
caller = arg.get('Caller')
|
||||
if caller:
|
||||
context.caller_loc[caller] = arg['DebugLoc']
|
||||
try:
|
||||
context.caller_loc[caller] = arg['DebugLoc']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
||||
def generate_report(all_remarks,
|
||||
|
|
Loading…
Reference in New Issue