mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Allow #no_alias on multi-pointers
This commit is contained in:
+2
-2
@@ -2017,8 +2017,8 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (p->flags&FieldFlag_no_alias) {
|
if (p->flags&FieldFlag_no_alias) {
|
||||||
if (!is_type_pointer(type)) {
|
if (!is_type_pointer(type) && !is_type_multi_pointer(type)) {
|
||||||
error(name, "'#no_alias' can only be applied pointer typed parameters");
|
error(name, "'#no_alias' can only be applied pointer or multi-pointer typed parameters");
|
||||||
p->flags &= ~FieldFlag_no_alias; // Remove the flag
|
p->flags &= ~FieldFlag_no_alias; // Remove the flag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user