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:
parent
89aeb7924c
commit
a3d8bd492d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue