fix: semantic restrictions for global variables, constant folding
This commit is contained in:
parent
cbcc796f1e
commit
9b5cd4038f
13 changed files with 569 additions and 375 deletions
|
|
@ -504,6 +504,7 @@ fn setDeclaration(
|
|||
.extra_index = astgen.addExtraAssumeCapacity(Ir.Inst.Declaration{
|
||||
.name = args.name,
|
||||
.value = args.value,
|
||||
.flags = if (args.node.tag == .const_decl) 0x01 else 0x00,
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue