mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-15 08:31:49 +01:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user