Fix a bug in the X86 ABI. The size of a struct is different from the size of a

pointer to that struct...
This commit is contained in:
Frits van Bommel
2009-03-06 21:15:13 +01:00
parent 1c6c4bc361
commit 5af82ee8d3
4 changed files with 46 additions and 7 deletions

View File

@@ -578,7 +578,7 @@ LLValue* DtoBitCast(LLValue* v, const LLType* t, const char* name)
{
if (v->getType() == t)
return v;
assert(!(isaStruct(t) || isaStruct(v->getType())));
assert(!isaStruct(t));
return gIR->ir->CreateBitCast(v, t, name ? name : "tmp");
}