From ee60d3f9a32f75c628961f40a9bf4f1bf387ac06 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sun, 14 Apr 2024 02:21:48 -0600 Subject: Proper Allocation sizes for Boil VarDeclaration --- st/TypeInstance.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'st/TypeInstance.java') diff --git a/st/TypeInstance.java b/st/TypeInstance.java index 596f638..65311a8 100644 --- a/st/TypeInstance.java +++ b/st/TypeInstance.java @@ -12,6 +12,11 @@ public class TypeInstance extends AbstractInstance { this.cls = cls; } + public int getSize() { + return (this.cls != null) ? + cls.getSize() : 4; + } + public ClassInstance getClassInstance() { return this.cls; } -- cgit v1.2.3