mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-06-08 17:54:10 +02:00
Removed redundant global.params.cpu field.
Now that we have global.params.targetTriple, the information is only duplicated.
This commit is contained in:
@@ -2923,8 +2923,11 @@ unsigned TypeBasic::alignsize()
|
||||
#if IN_LLVM
|
||||
unsigned TypeBasic::alignment()
|
||||
{
|
||||
if (global.params.cpu == ARCHx86_64 && (ty == Tfloat80 || ty == Timaginary80))
|
||||
if (global.params.targetTriple.getArch() == llvm::Triple::x86_64 &&
|
||||
(ty == Tfloat80 || ty == Timaginary80))
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
return Type::alignment();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user