mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed some undefs
This commit is contained in:
parent
156e3dd2fa
commit
8d3d4e71ea
3 changed files with 18 additions and 0 deletions
|
@ -935,6 +935,12 @@ void BfIRCodeGen::Read(llvm::Value*& llvmValue, BfIRCodeGenEntry** codeGenEntry)
|
|||
|
||||
return;
|
||||
}
|
||||
else if (constType == BfConstType_Undef)
|
||||
{
|
||||
CMD_PARAM(llvm::Type*, type);
|
||||
llvmValue = llvm::UndefValue::get(type);
|
||||
return;
|
||||
}
|
||||
|
||||
bool isSigned;
|
||||
llvm::Type* llvmConstType = GetLLVMType(typeCode, isSigned);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue