1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed TLS issues

This commit is contained in:
Brian Fiete 2020-06-13 14:56:46 -07:00
parent 89aeb7924c
commit a3d8bd492d

View file

@ -964,6 +964,8 @@ void BfIRCodeGen::AddNop()
bool BfIRCodeGen::TryMemCpy(llvm::Value* ptr, llvm::Value* val)
{
return false;
auto arrayType = llvm::dyn_cast<llvm::ArrayType>(val->getType());
if (arrayType == NULL)
return false;
@ -1812,7 +1814,7 @@ void BfIRCodeGen::HandleNextCmd()
isConstant,
LLVMMapLinkageType(linkageType),
initializer,
name.c_str());
name.c_str(), NULL, isTLS ? llvm::GlobalValue::GeneralDynamicTLSModel : llvm::GlobalValue::NotThreadLocal);
SetResult(curId, globalVariable);
}
break;