From 10e0580ca3e920a5c7c126abdd70683c6fe2188f Mon Sep 17 00:00:00 2001 From: Elias Haugsbakk Date: Sun, 20 Sep 2026 23:25:08 +0200 Subject: refactor Type to be a record class - now with method to check type compatability --- .../java/no/eliashaugsbakk/kompilator/IRGeneration/IRGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/IRGenerator.java') diff --git a/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/IRGenerator.java b/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/IRGenerator.java index 8ade66e..f8a5756 100644 --- a/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/IRGenerator.java +++ b/src/main/java/no/eliashaugsbakk/kompilator/IRGeneration/IRGenerator.java @@ -69,7 +69,7 @@ public class IRGenerator { } else { throw new IRGenerationException("Unknown function: " + identifierDecl.initializer); } - ir.add(new Alloc(identifierDecl.identifier, identifierDecl.type.type, identifierDecl.mutable, + ir.add(new Alloc(identifierDecl.identifier, identifierDecl.type.name(), identifierDecl.mutable, value)); } -- cgit v1.2.3