diff gen/tollvm.cpp @ 1050:32ead42679d1

Fix a bug in the X86 ABI. The size of a struct is different from the size of a pointer to that struct...
author Frits van Bommel <fvbommel wxs.nl>
date Fri, 06 Mar 2009 21:15:13 +0100
parents 9167d492cbc2
children f0b6549055ab
line wrap: on
line diff
--- a/gen/tollvm.cpp	Fri Mar 06 19:12:48 2009 +0100
+++ b/gen/tollvm.cpp	Fri Mar 06 21:15:13 2009 +0100
@@ -578,7 +578,7 @@
 {
     if (v->getType() == t)
         return v;
-    assert(!(isaStruct(t) || isaStruct(v->getType())));
+    assert(!isaStruct(t));
     return gIR->ir->CreateBitCast(v, t, name ? name : "tmp");
 }