Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tritonparse/ir_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def extract_loc_definitions(ir_content: str) -> Dict[str, Dict[str, Any]]:
# The first #loc directive is a special case. It locates at the top of the IR files
main_match = re.search(r'#loc = loc\("([^"]+)":(\d+):(\d+)\)', ir_content)
if main_match:
locations["1"] = {
locations[""] = {
"file": main_match.group(1),
"line": int(main_match.group(2)),
"column": int(main_match.group(3)),
Expand Down
Loading