Skip to content

Commit

Permalink
compiler: Fix crash with some broken code
Browse files Browse the repository at this point in the history
DCO-1.1-Signed-off-by: Ellie <[email protected]>
  • Loading branch information
ell1e committed Nov 24, 2023
1 parent 5b40fcc commit 871c93e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler/storage/scope/manage.h64
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ func project.ProjectFile.try_lookup_symbol_path(
entry.storage_info.storage_id]
)
}
if entry.symbol_info == none {
return none
}
return new storage_ref.StorageRef(
storage_ref.ST_GLOBAL,
entry.symbol_info.storage_id
Expand Down

0 comments on commit 871c93e

Please sign in to comment.