mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-16 02:17:07 +02:00
fixes #450 :: real inside a class breaks interface casting on x86_64; patch by prokhin_alexey
This commit is contained in:
@@ -1136,6 +1136,14 @@ unsigned TypeBasic::alignsize()
|
||||
|
||||
}
|
||||
|
||||
#if IN_LLVM
|
||||
unsigned TypeBasic::memalign(unsigned salign)
|
||||
{
|
||||
if (global.params.cpu == ARCHx86_64 && (ty == Tfloat80 || ty == Timaginary80))
|
||||
return 16;
|
||||
return Type::memalign(salign);
|
||||
}
|
||||
#endif
|
||||
|
||||
Expression *TypeBasic::getProperty(Loc loc, Identifier *ident)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user