We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd86c35 commit 20d6b84Copy full SHA for 20d6b84
src/dev/engine/internal/llvm/llvmtypes.cpp
@@ -14,10 +14,11 @@ llvm::StructType *LLVMTypes::createValueDataType(llvm::IRBuilder<> *builder)
14
llvm::Type *unionType = builder->getInt64Ty(); // 64 bits is the largest size
15
16
llvm::Type *valueType = llvm::Type::getInt32Ty(ctx); // Assuming ValueType is a 32-bit enum
17
+ llvm::Type *padding = llvm::Type::getInt32Ty(ctx); // Padding for alignment
18
llvm::Type *sizeType = llvm::Type::getInt64Ty(ctx); // size_t
19
20
llvm::StructType *ret = llvm::StructType::create(ctx, "ValueData");
- ret->setBody({ unionType, valueType, sizeType });
21
+ ret->setBody({ unionType, valueType, padding, sizeType });
22
23
return ret;
24
}
0 commit comments