mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed sized-aligned aggzero
This commit is contained in:
parent
8c700e6deb
commit
96e00fc7d8
1 changed files with 7 additions and 2 deletions
|
@ -913,7 +913,12 @@ void BfIRCodeGen::Read(llvm::Value*& llvmValue, BfIRCodeGenEntry** codeGenEntry,
|
||||||
}
|
}
|
||||||
else if (constType == BfConstType_AggZero)
|
else if (constType == BfConstType_AggZero)
|
||||||
{
|
{
|
||||||
CMD_PARAM(llvm::Type*, type);
|
BfIRTypeEntry* typeEntry = NULL;
|
||||||
|
llvm::Type* type = NULL;
|
||||||
|
Read(type, &typeEntry);
|
||||||
|
if ((wantSizeAligned) && (typeEntry != NULL))
|
||||||
|
llvmValue = llvm::ConstantAggregateZero::get(GetSizeAlignedType(typeEntry));
|
||||||
|
else
|
||||||
llvmValue = llvm::ConstantAggregateZero::get(type);
|
llvmValue = llvm::ConstantAggregateZero::get(type);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue