Fixed some missing cases.

This commit is contained in:
Samuel Hammersberg 2023-05-08 20:55:42 +02:00
parent 8ddb0ed052
commit 51f23d7f6e

View file

@ -38,8 +38,10 @@ valueGetType (VConstant s) = Array (fromIntegral $ length s) I8
valueGetType (VFunction _ _ t) = t
typeByteSize :: LLVMType -> Integer
typeByteSize Void = 0
typeByteSize I1 = 1
typeByteSize I8 = 1
typeByteSize I16 = 2
typeByteSize I32 = 4
typeByteSize I64 = 8
typeByteSize Ptr = 8