Skip to content

Commit

Permalink
compiler: minor improvement for boundary type analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 21, 2024
1 parent 070f204 commit 941a830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julec/opt/boundary.jule
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ fn possibleBoundaryRemove(mut &b: &boundary, model: ExprModel) {
}

fn isBoundaryRiskyType(mut t: &TypeKind): bool { ret t.Sptr() != nil }
fn isBoundaryValidType(mut t: &TypeKind): bool { ret t.Ptr() == nil }
fn isBoundaryValidType(mut t: &TypeKind): bool { ret t.Slc() != nil || t.Arr() != nil }

fn getBoundaryVar(m: ExprModel): uintptr {
if !Access {
Expand Down

0 comments on commit 941a830

Please sign in to comment.