fixes #450 :: real inside a class breaks interface casting on x86_64; patch by prokhin_alexey

This commit is contained in:
Moritz Warning
2011-05-01 20:05:49 +02:00
parent 3a0dfac597
commit 5824fe4da7
4 changed files with 22 additions and 0 deletions
+8
View File
@@ -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)
{