Skip to content

Commit

Permalink
SPMI: Fix clean asmdiffs (dotnet#106859)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch authored Aug 23, 2024
1 parent ac63269 commit f402418
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/coreclr/scripts/superpmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2614,8 +2614,11 @@ def create_summarizable_asm_diffs(self, asm_diffs):
git_path = find_file(git_exe, path_var.split(os.pathsep)) if path_var is not None else None

for (mch_file, base_metrics, diff_metrics, diffs, jit_analyze_file, examples_to_put_in_summary) in asm_diffs:
with open(jit_analyze_file, "r") as read_fh:
jit_analyze_result = read_fh.read()
if jit_analyze_file:
with open(jit_analyze_file, "r") as read_fh:
jit_analyze_result = read_fh.read()
else:
jit_analyze_result = None

example_diffs = []
for (diff, base_dasm_path, diff_dasm_path) in examples_to_put_in_summary:
Expand Down

0 comments on commit f402418

Please sign in to comment.