[K/N] Any.isFrozen is now always false when freezing is disabled
This commit is contained in:
@@ -91,6 +91,7 @@ void ObjHeader::destroyMetaObject(ObjHeader* object) {
|
||||
|
||||
ALWAYS_INLINE bool isPermanentOrFrozen(const ObjHeader* obj) {
|
||||
// TODO: Freeze TF_IMMUTABLE objects upon creation.
|
||||
if (!compiler::freezingChecksEnabled()) return false;
|
||||
return mm::IsFrozen(obj) || ((obj->type_info()->flags_ & TF_IMMUTABLE) != 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user