llvm.org GIT mirror llvm / 54df34c
[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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307880 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 3 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
177177 for arg in remark.Args:
178178 caller = arg.get('Caller')
179179 if caller:
180 context.caller_loc[caller] = arg['DebugLoc']
180 try:
181 context.caller_loc[caller] = arg['DebugLoc']
182 except KeyError:
183 pass
181184
182185
183186 def generate_report(all_remarks,