Skip to content

Commit

Permalink
builtin: add a @[markused] tag to isnil(), because cgen generates…
Browse files Browse the repository at this point in the history
… calls to it in some cases (#23462)
  • Loading branch information
kbkpbot authored Jan 14, 2025
1 parent 6f7cbd1 commit ae81095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/builtin/builtin.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module builtin

// isnil returns true if an object is nil (only for C objects).
@[inline]
@[inline; markused]
pub fn isnil(v voidptr) bool {
return v == 0
}
Expand Down

0 comments on commit ae81095

Please sign in to comment.