mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Merge branch 'master' into llvm-integration
This commit is contained in:
commit
dd69fcba07
2 files changed
+69
-18
No files matched your search
@@ -1653,6 +1653,11 @@ bool check_is_not_addressable(CheckerContext *c, Operand *o) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Ast *expr = unparen_expr(o->expr);
|
||||
if (expr->kind == Ast_CompoundLit) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (o->mode != Addressing_Variable) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user