builtin: add a @[markused] tag to isnil(), because cgen generates calls to it in some cases (#23462)

This commit is contained in:
kbkpbot 2025-01-14 12:23:31 +08:00 committed by GitHub
parent 6f7cbd1aef
commit ae8109545e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}