fix that memory("name", ...) also allocates a STR variable for the name

This commit is contained in:
Irmen de Jong
2022-01-02 17:07:04 +01:00
parent 7bc75fd220
commit 74257163b1
5 changed files with 24 additions and 9 deletions

View File

@@ -189,7 +189,7 @@ class CallGraph(private val program: Program) : IAstVisitor {
}
fun usages(decl: VarDecl): List<IdentifierReference> {
if(decl.type!=VarDeclType.VAR || decl.autogeneratedDontRemove || decl.sharedWithAsm)
if(decl.type!=VarDeclType.VAR)
return emptyList()
if(decl.definingBlock !in usedBlocks)