mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-05-04 17:31:29 +02: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
|
// erase previous attributes
|
||||||
last->attrs = 0;
|
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;
|
last->attrs |= llvm::Attribute::InReg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user