Skip to content

Commit 2e9ed78

Browse files
authored
Fix file opening method in _get_nr_branch_weights
1 parent e35d070 commit 2e9ed78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler_opt/tools/profgen/qualifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
def _get_nr_branch_weights(ir_path: str) -> int:
4242
total = 0
43-
with gfile.open(ir_path) as f:
43+
with gfile.Open(ir_path) as f:
4444
for line in f:
4545
if """!"branch_weights""" in line:
4646
total += 1

0 commit comments

Comments
 (0)