Remove inreg attribute from static arrays when enregistering them.

This commit is contained in:
David Nadlinger
2012-06-06 15:44:54 +02:00
parent 6ad085a1f8
commit 260faae6ec

View File

@@ -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;
}
}