mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Remove inreg attribute from static arrays when enregistering them.
This commit is contained in:
@@ -177,6 +177,12 @@ struct X86TargetABI : TargetABI
|
||||
// erase previous attributes
|
||||
last->attrs = 0;
|
||||
}
|
||||
else if (lastTy->ty == Tsarray)
|
||||
{
|
||||
last->ltype = DtoType(last->type);
|
||||
last->byref = false;
|
||||
last->attrs &= ~llvm::Attribute::ByVal;
|
||||
}
|
||||
last->attrs |= llvm::Attribute::InReg;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user